summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-19 11:19:03 +0200
committerErich Eckner <git@eckner.net>2019-06-16 14:32:13 +0200
commit4c6f13e75468300ee33c75c516dc8fe343fa214b (patch)
tree8d4d52233a062c61fb6cb2ad223495230038b7c3
parentbeddb49a471d91c95a48b56d23a86d7b65d97837 (diff)
downloaddevtools-4c6f13e75468300ee33c75c516dc8fe343fa214b.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 52e834b..97a6ea4 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -231,7 +231,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