diff options
author | Erich Eckner <git@eckner.net> | 2017-10-19 11:19:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-06-29 10:43:34 +0200 |
commit | 936297a449489f736526a72314ad71307848f41b (patch) | |
tree | 76883f62805d71dd542da077731d7223d54c06f0 | |
parent | 4f3e7c81c95b47f9fa108cf17036ef847d1fa534 (diff) | |
download | devtools32-936297a449489f736526a72314ad71307848f41b.tar.xz |
makechrootpkg: bend to allow running solely namcap via "*-build -- -- --verifysource"
-rw-r--r-- | makechrootpkg.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in index 39a6dc4..1e76c5c 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 |