wok-current rev 6049
tazbb: may refresh packages according to BUILD_DEPENDS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 17 13:16:06 2010 +0200 (2010-08-17) |
parents | 5c83f338900c |
children | 23656e3f46a6 |
files | tazbb/stuff/tazbb |
line diff
1.1 --- a/tazbb/stuff/tazbb Tue Aug 17 12:45:19 2010 +0200 1.2 +++ b/tazbb/stuff/tazbb Tue Aug 17 13:16:06 2010 +0200 1.3 @@ -290,6 +290,7 @@ 1.4 do 1.5 EXTRAVERSION="" 1.6 WANTED="" 1.7 + BUILD_DEPENDS="" 1.8 [ -s $pkg/receipt ] || continue 1.9 . $pkg/receipt 1.10 [ "$2" = "--verbose" ] && echo "Package : $PACKAGE" 1.11 @@ -334,6 +335,15 @@ 1.12 echo "Unbuilt : $PACKAGE ($VERSION)" >> $DB_DIR/report 1.13 echo "$PACKAGE" >> $DB_DIR/cooklist 1.14 fi 1.15 + if ! grep -q $PACKAGE $DB_DIR/cooklist; then 1.16 + for dep in $BUILD_DEPENDS ; do 1.17 + [ $BUILD_WOK/$PACKAGE/taz -nt $BUILD_WOK/$dep/taz ] && continue 1.18 + [ "$1" = "report" ] && echo "Refresh : $PACKAGE (older than $dep)" 1.19 + echo "Refresh : $PACKAGE (older than $dep)" >> $DB_DIR/report 1.20 + echo "$PACKAGE" >> $DB_DIR/cooklist 1.21 + break 1.22 + done 1.23 + fi 1.24 # Rebuild unbuilt packages list with link to log file. This list 1.25 # is also generated by cook_inslall to have real time stats. 1.26 if [ ! -d $BUILD_WOK/$PACKAGE/taz ]; then