summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-19 11:19:03 +0200
committerErich Eckner <git@eckner.net>2018-03-24 21:36:35 +0100
commitc79ded528b0e495a1b730ea2ef9155c921afcec3 (patch)
treea98cd9f0e064eac778c34a7f714e8ea5d78cf8b9
parent82681ecb4f443d8ec333848c9c0388acd43c186a (diff)
downloaddevtools-c79ded528b0e495a1b730ea2ef9155c921afcec3.tar.xz
makechrootpkg: bend to allow running solely namcap via "*-build -- -- --verifysource"
-rw-r--r--makechrootpkg.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 032ffc5..9c3330e 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -235,7 +235,10 @@ _chrootbuild() {
_chrootnamcap() {
pacman -S --needed --noconfirm namcap
- for pkgfile in /startdir/PKGBUILD /pkgdest/*; do
+ for pkgfile in /startdir/PKGBUILD /startdir/*.pkg.tar.xz /pkgdest/*; do
+ if [ ! -f "${pkgfile}" ]; then
+ continue
+ fi
echo "Checking ${pkgfile##*/}"
sudo -u builduser namcap "$pkgfile" 2>&1 | tee "/logdest/${pkgfile##*/}-namcap.log"
done