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>2019-04-02 11:17:45 +0200
commit78936e942138a4180677be992ed5e878e5684de1 (patch)
tree7f208239c965503f7b6f93b19a2f8f4cd358bcee /makechrootpkg.in
parent3a9453e307bf1ff80a140ec8022a2bd57fc4c3fa (diff)
downloaddevtools32-78936e942138a4180677be992ed5e878e5684de1.tar.xz
makechrootpkg: bend to allow running solely namcap via "*-build -- -- --verifysource"
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 dc647b3..cf9b965 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -237,7 +237,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