From 2c00ff0a4cd586c02efbb22d3dcc137f7ae86dcd Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Tue, 28 Mar 2023 12:29:44 +0200 Subject: [PATCH] Handle missing dependencies --- entrypoint.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index df994ef..21d1875 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -76,6 +76,20 @@ find . -name PKGBUILD -execdir sh -c 'makepkg --printsrcinfo > .SRCINFO' \; # Obtain version of downloaded packages find . -iname PKGBUILD -exec dirname {} \; | aur srcver --no-prepare - >vcs +# *missing Dependency resolution +cut -f1 vcs | aur depends -r - | tsort > dependencies +comm -23 <(sort dependencies) <(cut -f1 vcs | sort) | tee -a buildqueue | tee -a dep_missing | aur fetch - + +if wc -l dep_missing | grep -q "^0 "; then + echo "No missing dependencies." +else + echo "!!! Missing dependencies !!!" + cat dep_missing + echo "!!! Missing dependencies !!!" +fi + + + # Rebuild all git packages if [ -z "${NO_GIT_REBUILD:-}" ]; then cut -f1 vcs | grep -e "-git$" | tee -a buildqueue