Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-19 11:19:03 +0200
committerErich Eckner <git@eckner.net>2021-02-13 14:06:13 +0100
commitadc402d09894df58234476428d228b6a202a6e08 (patch)
tree8a5a9aac46dafa07bb5d71051a3c9f0d7b3b705c
parentaa832e3f9af42315f2e4e27e1255c8798b910813 (diff)
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 10bf8b7..eecb050 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