summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-19 11:19:03 +0200
committerErich Eckner <git@eckner.net>2019-12-27 21:37:13 +0100
commita32aad4aaa0407fd0946eba64172f5b7f812d41b (patch)
treed73664f4e249cc63cc6245385bd0e6e251772b37
parent959264fbef14d3c1b086019e924ce3c9c4ad8f2e (diff)
downloaddevtools-a32aad4aaa0407fd0946eba64172f5b7f812d41b.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 dfea18c..c2d8cdd 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -225,7 +225,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