diff options
author | Erich Eckner <git@eckner.net> | 2017-10-19 11:19:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-29 09:02:49 +0200 |
commit | 48eadbeb61dc5401334224ed1b8f566808e9ec64 (patch) | |
tree | 683f9f6fd4b597022b488801d082a6217bb20bc0 /makechrootpkg.in | |
parent | ab3b8d7830382d0ec461e72b30523732acf57800 (diff) | |
download | devtools32-48eadbeb61dc5401334224ed1b8f566808e9ec64.tar.xz |
makechrootpkg: bend to allow running solely namcap via "*-build -- -- --verifysource"
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r-- | makechrootpkg.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in index dafd290..09b8168 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -231,7 +231,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 |