summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-19 11:19:03 +0200
committerErich Eckner <git@eckner.net>2020-04-08 08:45:46 +0200
commit939fb0ea94e55981921efacdd9c4b50eac3e7b33 (patch)
tree030a4f413d5df787a9811e1f744cf5592a65308f
parent454e6223d73fb4c577fcdc4df58f69acce2a37d7 (diff)
downloaddevtools32-939fb0ea94e55981921efacdd9c4b50eac3e7b33.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 39a6dc4..1e76c5c 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -228,7 +228,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