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-08-20 09:00:03 +0200
commite86484319cc4c4dac7c7148f428ab1a2a67cffa7 (patch)
treebd9799bb64ecd08395485edad3c475a1158c6578 /makechrootpkg.in
parent4b4a02c2851f72ffde21855486746ae6fd84bb29 (diff)
downloaddevtools32-e86484319cc4c4dac7c7148f428ab1a2a67cffa7.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 ce47b93..77247b0 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -248,7 +248,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