diff options
author | Erich Eckner <git@eckner.net> | 2017-10-19 11:19:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-31 16:09:42 +0200 |
commit | d6eaa035bcfd342362ccaa668356f260868cc3dc (patch) | |
tree | 8e92d83a3d4000dc881a30bbfd1ea946e7f01d80 | |
parent | 9810581c7df43eed3d8b60c38b369dc9baaad1e4 (diff) | |
download | devtools32-d6eaa035bcfd342362ccaa668356f260868cc3dc.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 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 |