wok rev 6051
tazbb: may refresh packages according to BUILD_DEPENDS et TOOLCHAIN !
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 17 14:22:23 2010 +0200 (2010-08-17) |
parents | 23656e3f46a6 |
children | 5fe024ce14db |
files | tazbb/stuff/tazbb |
line diff
1.1 --- a/tazbb/stuff/tazbb Tue Aug 17 14:14:29 2010 +0200 1.2 +++ b/tazbb/stuff/tazbb Tue Aug 17 14:22:23 2010 +0200 1.3 @@ -286,6 +286,7 @@ 1.4 echo "Checking all files in: $HG_WOK" 1.5 echo "================================================================================" 1.6 echo "(checking wok)" > $DB_DIR/running 1.7 + TOOLCHAIN="$(. $HG_WOK/slitaz-toolchain/receipt ; echo $DEPENDS)" 1.8 for pkg in $HG_WOK/* 1.9 do 1.10 EXTRAVERSION="" 1.11 @@ -336,7 +337,7 @@ 1.12 echo "$PACKAGE" >> $DB_DIR/cooklist 1.13 fi 1.14 if ! grep -q $PACKAGE $DB_DIR/cooklist; then 1.15 - for dep in $BUILD_DEPENDS ; do 1.16 + for dep in $BUILD_DEPENDS $TOOLCHAIN ; 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