diff options
author | Erich Eckner <git@eckner.net> | 2017-10-19 11:19:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-16 16:39:44 +0200 |
commit | fab8b13b172863ef8be43c957d1ffaa33b92253b (patch) | |
tree | 9cecd0b11011bb471fbb6bb4a7bd717170b0c453 | |
parent | e4aafd20dfff71c41b46c86b88d0bb0090e24d89 (diff) | |
download | devtools32-fab8b13b172863ef8be43c957d1ffaa33b92253b.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 c451443..7235921 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -236,7 +236,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 |