summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-19 11:19:03 +0200
committerErich Eckner <git@eckner.net>2020-02-21 08:27:36 +0100
commit18cbe840d0d6ccaf0974e361f8e0434e3a36f9a3 (patch)
tree90993e61f24dc4bd3fc8a61cd2e7f8081a97216e
parent6a39be5298b3b3be088d5e27ccc43615cfccf149 (diff)
downloaddevtools32-18cbe840d0d6ccaf0974e361f8e0434e3a36f9a3.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 61e2f98..a9591ba 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