Cleanup and fix process_queue() post-build code.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
mauro.giachero 2009-07-20 13:56:29 +00:00
parent af31572a1c
commit c4310a4c6f

View File

@ -3470,16 +3470,12 @@ process_queue() {
NEWPACKAGE=$(ls -1t *.t?z | head -n1)
echo " Building package $NEWPACKAGE ... OK" >> $TMPSUMMARYLOG
echo "Built package: $NEWPACKAGE"
if [[ $QUEUETYPE == "buildinstall" ]]; then
if [[ $SB_OUTPUT/*.t?z ]]; then
cd $SB_OUTPUT
NEWPACKAGE=$(ls -1t *.t?z | head -n1)
if [[ -f $NEWPACKAGE ]]; then
if [[ $QUEUETYPE == "buildinstall" ]]; then
install_package $SB_OUTPUT $NEWPACKAGE
echo " Installing package $NEWPACKAGE ... OK" >> $TMPSUMMARYLOG
fi
fi
if [[ $SB_OUTPUT/*.t?z ]]; then
mv $SB_OUTPUT/*.t?z $OUTPUT/
mv $NEWPACKAGE $OUTPUT
fi
else
echo >> $TMPSUMMARYLOG