Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
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>2018-06-27 10:44:48 +0200
commit2a9eab23863b62b4fc502f2b537cd116cd7214db (patch)
treeed4cc29e5314ffe35bf538ed08639433caf9cb9c /makechrootpkg.in
parentce11f073408f27eb678376838425c1816f15e9c5 (diff)
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 4b72a36..f606df0 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