diff options
author | Erich Eckner <git@eckner.net> | 2017-10-19 11:19:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-08-18 20:19:42 +0200 |
commit | 1be00953a689f58a41f6a7f2cc167354b855fc3d (patch) | |
tree | 1e7d24be37dc643edb4d0274caf933a456dbbc74 /makechrootpkg.in | |
parent | 00b11824778c6f5d638517dfecc7b7936c918dfa (diff) | |
download | devtools32-1be00953a689f58a41f6a7f2cc167354b855fc3d.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 ce47b93..77247b0 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -248,7 +248,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 |