diff options
author | Erich Eckner <git@eckner.net> | 2017-10-19 11:19:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-10-16 06:26:55 +0200 |
commit | db8f420517add579cd2864c603d3ab4eea70d729 (patch) | |
tree | cf9a2edd1bb4c357f28499ccb54f416fd9929b65 | |
parent | 4c8897b4cbd6e66fb8142089ef8e53e82f5c3178 (diff) | |
download | devtools-db8f420517add579cd2864c603d3ab4eea70d729.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 f5a0e51..004b99b 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -243,7 +243,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 |