diff options
author | Erich Eckner <git@eckner.net> | 2017-10-19 11:19:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-10-19 11:19:03 +0200 |
commit | 46885845319eb714c815ac274e0aa5c03b49e5ad (patch) | |
tree | 322d7a5cce57d0bee2c1aba9f9d3db939a62a618 | |
parent | 3eadb2f54b19b1141544f0a449eb2649eced044a (diff) | |
download | devtools-46885845319eb714c815ac274e0aa5c03b49e5ad.tar.xz |
makechrootpkg: bend to allow running solely namcap via "*-build -- -- --verifysource"v20171019archlinux32/v20171019
-rw-r--r-- | makechrootpkg.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in index d9686e9..6d17d0d 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -260,7 +260,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 |