diff options
author | Erich Eckner <git@eckner.net> | 2017-10-19 11:19:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-08-22 11:13:59 +0200 |
commit | b9a549bcb5fa4db21908ba0868eae28af1fa718e (patch) | |
tree | bd9799bb64ecd08395485edad3c475a1158c6578 | |
parent | a59776ddbb85d6326346a7b6fcc471c104cfa58a (diff) | |
download | devtools32-b9a549bcb5fa4db21908ba0868eae28af1fa718e.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 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 |