summaryrefslogtreecommitdiff
path: root/makechrootpkg.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-19 11:19:03 +0200
committerErich Eckner <git@eckner.net>2017-10-19 11:19:03 +0200
commit46885845319eb714c815ac274e0aa5c03b49e5ad (patch)
tree322d7a5cce57d0bee2c1aba9f9d3db939a62a618 /makechrootpkg.in
parent3eadb2f54b19b1141544f0a449eb2649eced044a (diff)
downloaddevtools-46885845319eb714c815ac274e0aa5c03b49e5ad.tar.xz
makechrootpkg: bend to allow running solely namcap via "*-build -- -- --verifysource"v20171019archlinux32/v20171019
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index d9686e9..6d17d0d 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -260,7 +260,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