summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-19 11:19:03 +0200
committerErich Eckner <git@eckner.net>2022-09-30 08:43:49 +0200
commitace95614e677c243098c702127ca06f75b025d3e (patch)
tree72dd3fc045b1fa5c856bfbf6e2643bf99bbab74c
parenteba281f4835e3b6448fb15631edd13ae0433268b (diff)
downloaddevtools-ace95614e677c243098c702127ca06f75b025d3e.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 8e570e4..554a15d 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