buildUpgradePackages: fixup failure detection

This commit is contained in:
layman 2021-07-03 11:54:32 +02:00
parent fe1934653d
commit d13c899551

View file

@ -9,14 +9,15 @@ fi
for atom in $(emerge -uDN --pretend --quiet world | grep ^'\[ebuild' | sed -e 's/.* \b\([a-z0-9\-]\+\/[\_A-Za-z\.0-9\-]\+\)\b.*/\1/g');
do
if [[ ! -f "$PKGDIR/$atom.tbz2" ]]
PACKAGE_FILE="$PKGDIR/$atom.tbz2"
if [[ ! -f "$PACKAGE_FILE" ]]
then
#build one by one. This takes more time, however it builds all possible packages.
# echo "building $atom "
emerge --quiet --keep-going -B "=${atom}" &> /dev/null
if [[ $? ]]
if [[ -f "$PACKAGE_FILE" ]]
then
SUCCESS="$atom $SUCCESS"
SUCCESS="$SUCCESS $atom"
else
FAILURE="$atom $FAILURE"
fi