buildUpgradePackages: fixup failure detection
This commit is contained in:
parent
fe1934653d
commit
d13c899551
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue