diff options
author | Erich Eckner <git@eckner.net> | 2017-10-19 11:19:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-24 21:36:35 +0100 |
commit | c79ded528b0e495a1b730ea2ef9155c921afcec3 (patch) | |
tree | a98cd9f0e064eac778c34a7f714e8ea5d78cf8b9 /makechrootpkg.in | |
parent | 82681ecb4f443d8ec333848c9c0388acd43c186a (diff) | |
download | devtools32-c79ded528b0e495a1b730ea2ef9155c921afcec3.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 032ffc5..9c3330e 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -235,7 +235,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 |