# HG changeset patch # User Pascal Bellard # Date 1282043766 -7200 # Node ID f3c6288fb955b7e4d729d948b619b17c5658445c # Parent 5c83f338900cb9f7769ceafe2f3dee3481b2e4f4 tazbb: may refresh packages according to BUILD_DEPENDS diff -r 5c83f338900c -r f3c6288fb955 tazbb/stuff/tazbb --- a/tazbb/stuff/tazbb Tue Aug 17 12:45:19 2010 +0200 +++ b/tazbb/stuff/tazbb Tue Aug 17 13:16:06 2010 +0200 @@ -290,6 +290,7 @@ do EXTRAVERSION="" WANTED="" + BUILD_DEPENDS="" [ -s $pkg/receipt ] || continue . $pkg/receipt [ "$2" = "--verbose" ] && echo "Package : $PACKAGE" @@ -334,6 +335,15 @@ echo "Unbuilt : $PACKAGE ($VERSION)" >> $DB_DIR/report echo "$PACKAGE" >> $DB_DIR/cooklist fi + if ! grep -q $PACKAGE $DB_DIR/cooklist; then + for dep in $BUILD_DEPENDS ; do + [ $BUILD_WOK/$PACKAGE/taz -nt $BUILD_WOK/$dep/taz ] && continue + [ "$1" = "report" ] && echo "Refresh : $PACKAGE (older than $dep)" + echo "Refresh : $PACKAGE (older than $dep)" >> $DB_DIR/report + echo "$PACKAGE" >> $DB_DIR/cooklist + break + done + fi # Rebuild unbuilt packages list with link to log file. This list # is also generated by cook_inslall to have real time stats. if [ ! -d $BUILD_WOK/$PACKAGE/taz ]; then