From d34ea67e9de2d2f823fbb8026be6c41fca62607a Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Wed, 7 Jun 2023 01:33:12 +0200 Subject: [PATCH] Graph --- entrypoint.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 67be24e..bd646dd 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -74,10 +74,12 @@ touch buildqueue git submodule update --remote --merge &>/dev/null # Make sure we are up to date if something is linked as a submodule # -find . -name PKGBUILD -execdir sh -c 'makepkg --printsrcinfo > .SRCINFO' \; +# find . -name PKGBUILD -execdir sh -c 'makepkg --printsrcinfo > .SRCINFO || echo "Failed to build $(pwd)"' \; -# Obtain version of downloaded packages -find . -iname PKGBUILD -exec dirname {} \; | aur srcver --no-prepare - >vcs +# Obtain version of downloaded packages which didnt fail +while read -r i; do + aur srcver --no-prepare --jobs=4 "$i" || true +done <<< "$(find . -iname PKGBUILD -exec dirname {} \;)" > vcs # *missing Dependency resolution cut -f1 vcs | aur depends -r - | tsort > dependencies @@ -107,9 +109,10 @@ comm -23 <(cut -f1 vcs | sort) <(pacman -Slq "${AUR_REPO_NAME}" | sort) | tee -a # Build all packages defined in buildqueue while read -r i; do cat "$i"/.SRCINFO -done queue +done queue grep validpgpkeys buildfile | cut -d "=" -f2 | tr -d " " | xargs -n1 gpg --recv-keys +cat graph echo echo QUEUE echo