diff options
author | Erich Eckner <git@eckner.net> | 2017-10-19 11:19:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-02-13 14:15:06 +0100 |
commit | f598d14a9c9eff686cf6cb33bb4a67e0ab34a7f4 (patch) | |
tree | 4d9d61d58f16bd118f07591cb865dda024c3d341 | |
parent | 3344d8b0762eb9dab551e8d77f035f3e1a10ec4d (diff) | |
download | devtools32-f598d14a9c9eff686cf6cb33bb4a67e0ab34a7f4.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 10bf8b7..eecb050 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 |