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');
|
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
|
do
|
||||||
if [[ ! -f "$PKGDIR/$atom.tbz2" ]]
|
PACKAGE_FILE="$PKGDIR/$atom.tbz2"
|
||||||
|
if [[ ! -f "$PACKAGE_FILE" ]]
|
||||||
then
|
then
|
||||||
#build one by one. This takes more time, however it builds all possible packages.
|
#build one by one. This takes more time, however it builds all possible packages.
|
||||||
# echo "building $atom "
|
# echo "building $atom "
|
||||||
emerge --quiet --keep-going -B "=${atom}" &> /dev/null
|
emerge --quiet --keep-going -B "=${atom}" &> /dev/null
|
||||||
if [[ $? ]]
|
if [[ -f "$PACKAGE_FILE" ]]
|
||||||
then
|
then
|
||||||
SUCCESS="$atom $SUCCESS"
|
SUCCESS="$SUCCESS $atom"
|
||||||
else
|
else
|
||||||
FAILURE="$atom $FAILURE"
|
FAILURE="$atom $FAILURE"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue