From 5d080c60b2a98ec1110c94476a19f047824eadee Mon Sep 17 00:00:00 2001 From: nyyu Date: Sun, 3 Jul 2022 10:13:32 +0200 Subject: [PATCH] add warning if package is present in arch repo --- build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.sh b/build.sh index 6d945b1..8fbf280 100755 --- a/build.sh +++ b/build.sh @@ -17,6 +17,10 @@ build() { epoch=${epoch}: fi + if pacman -Si "${name}" | grep -v nyyu | grep -c -E '^Repository' >/dev/null; then + echo "WARN: Found ${name} in arch repo" + fi + if ! compgen -G "/repo/${name}-${epoch}${ver}-${rel}-*.pkg.tar.zst" >/dev/null; then if makepkg -s --skippgpcheck --noconfirm --sign || makepkg -s --skippgpcheck --nocheck --noconfirm --sign; then for pkg in *.pkg.tar.zst; do