From b80256e95324d19512b4ba01a25a0dbff0bea12c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 19 Oct 2017 11:19:03 +0200 Subject: makechrootpkg: bend to allow running solely namcap via "*-build -- -- --verifysource" --- makechrootpkg.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'makechrootpkg.in') diff --git a/makechrootpkg.in b/makechrootpkg.in index 56830e2..3fc0262 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -228,7 +228,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 -- cgit v1.2.3-70-g09d2