diff options
author | Erich Eckner <git@eckner.net> | 2017-10-19 11:19:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-05-18 08:45:02 +0200 |
commit | bedda2094754ebe853c4e12c18bb72d58fd98389 (patch) | |
tree | 5d05331d3da8bba51eae0528950f4119ca9507a0 /makechrootpkg.in | |
parent | 360f258283e68b54647e4c98ce57d0f625fb199b (diff) | |
download | devtools32-bedda2094754ebe853c4e12c18bb72d58fd98389.tar.xz |
makechrootpkg: bend to allow running solely namcap via "*-build -- -- --verifysource"
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r-- | makechrootpkg.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in index bfa69be..99534c4 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -225,7 +225,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 |