Simplify logic

This commit is contained in:
Tobias Manske 2023-03-27 08:39:00 +02:00
parent 14c3f0df62
commit ed46f17da3
Signed by: tobias
GPG Key ID: 9164B527694A0709

View File

@ -49,18 +49,17 @@ touch buildqueue
git submodule update --remote --merge # Make sure we are up to date if something is linked as a submodule
#
# Rebuild all git packages
aur repo --list
aur repo --list | awk '{print $1}' | grep -e "-git$" | aur fetch -
find . -name PKGBUILD -execdir sh -c 'makepkg --printsrcinfo > .SRCINFO' \;
find . -iname PKGBUILD -exec dirname {} \; | aur srcver - > vcs
# Obtain version of downloaded packages
find . -iname PKGBUILD -exec dirname {} \; | aur srcver --no-prepare - > vcs
# Rebuild all git packages
find . -iname "*-git$" -type d | tee -a buildqueue
# add all outdated packages to the build queue
aur repo --list | aur vercmp -q -p vcs | tee -a buildqueue
aur repo --list | aur vercmp -q | tee -a buildqueue | aur fetch - # pull outdated packages
# Build all packages defined in buildqueue
while read -r i; do
cat "$i"/.SRCINFO