diff options
author | Erich Eckner <git@eckner.net> | 2017-10-19 11:19:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-09-13 09:22:11 +0200 |
commit | e946dbdc2a2e09fb852bf13a8e7e1c537dd63362 (patch) | |
tree | 4494b6714a301d33f7b36416b37160b7a4f01929 | |
parent | 5abdb479663b8635d46263b606f54ddbfdf034f1 (diff) | |
download | devtools32-e946dbdc2a2e09fb852bf13a8e7e1c537dd63362.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 2407115..85b6845 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -241,7 +241,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 |