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