Handle missing dependencies

This commit is contained in:
Tobias Manske 2023-03-28 12:29:44 +02:00
parent 3b8bacc9f7
commit 2c00ff0a4c
Signed by: tobias
GPG Key ID: 9164B527694A0709

View File

@ -76,6 +76,20 @@ find . -name PKGBUILD -execdir sh -c 'makepkg --printsrcinfo > .SRCINFO' \;
# Obtain version of downloaded packages # Obtain version of downloaded packages
find . -iname PKGBUILD -exec dirname {} \; | aur srcver --no-prepare - >vcs 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 # Rebuild all git packages
if [ -z "${NO_GIT_REBUILD:-}" ]; then if [ -z "${NO_GIT_REBUILD:-}" ]; then
cut -f1 vcs | grep -e "-git$" | tee -a buildqueue cut -f1 vcs | grep -e "-git$" | tee -a buildqueue