summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-19 11:19:03 +0200
committerErich Eckner <git@eckner.net>2019-08-22 11:13:59 +0200
commitb9a549bcb5fa4db21908ba0868eae28af1fa718e (patch)
treebd9799bb64ecd08395485edad3c475a1158c6578
parenta59776ddbb85d6326346a7b6fcc471c104cfa58a (diff)
downloaddevtools32-b9a549bcb5fa4db21908ba0868eae28af1fa718e.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 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