makechrootpkg: Don't fail if no chroot namcap
The call to namcap was causing the script to fail if namcap didn't exist or returned 1. Fix that by always returning 0... Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
486375ba0a
commit
b3b1cfba42
|
@ -214,7 +214,8 @@ export LANG=$LOCALE
|
|||
cd /build
|
||||
export HOME=/build
|
||||
sudo -u nobody makepkg $MAKEPKG_ARGS || touch BUILD_FAILED
|
||||
namcap *.pkg.tar.gz > /pkgdest/namcap.log
|
||||
which namcap 2>&1 >/dev/null && namcap *.pkg.tar.gz > /pkgdest/namcap.log
|
||||
exit 0
|
||||
EOF
|
||||
) > "$uniondir/chrootbuild"
|
||||
chmod +x "$uniondir/chrootbuild"
|
||||
|
|
Loading…
Reference in New Issue