fi
fi
else
- eval ${NICE_COMMAND} $RPMBUILD $TARGET_SWITCH $BUILD_SWITCH -v $QUIET $CLEAN $RPMOPTS $RPMBUILDOPTS $BCOND --define \'_specdir $PACKAGE_DIR\' --define \'_sourcedir $PACKAGE_DIR\' $SPECFILE
+ BRLISTFILE=$(tempfile)
+ eval ${NICE_COMMAND} $RPMBUILD $TARGET_SWITCH $BUILD_SWITCH -v $QUIET $CLEAN $RPMOPTS $RPMBUILDOPTS $BCOND --define \'_specdir $PACKAGE_DIR\' --define \'_sourcedir $PACKAGE_DIR\' $SPECFILE 2>$BRLISTFILE
RETVAL=$?
fi
if [ "$RETVAL" -ne "0" ]; then
fi
echo ""
fi
+ # try to nicely show package list, to just copy&paste it to poldek or so...
+ cat $BRLISTFILE
+ BRLIST=$(awk 'BEGIN{ORS=" ";} NR>1 {print $1;}' $BRLISTFILE)
+ echo
+ echo "To install packages type:"
+ echo "poldek -ivh $BRLIST"
+ echo
+ echo "In poldek, copy these command:"
+ echo "install $BRLIST"
+ echo
+ rm $BRLISTFILE
Exit_error err_build_fail
fi
unset BUILD_SWITCH