summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-19 11:19:03 +0200
committerErich Eckner <git@eckner.net>2022-12-08 12:57:22 +0100
commit894ef63fe7b3407821546dd7e35f3ce6ce26b675 (patch)
treed67ab3fb2c077e4cd327ee2a42c70db9d27ad48b
parent0a285ac926aa1f9238d60b6a2bbd3155e3d84fd4 (diff)
downloaddevtools-894ef63fe7b3407821546dd7e35f3ce6ce26b675.tar.xz
makechrootpkg: bend to allow running solely namcap via "*-build -- -- --verifysource"
-rw-r--r--src/makechrootpkg.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/makechrootpkg.in b/src/makechrootpkg.in
index 765fc55..737edda 100644
--- a/src/makechrootpkg.in
+++ b/src/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