wok-stable rev 6091
tazbb/sort_cook_list: check build date too
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 30 11:56:07 2010 +0200 (2010-08-30) |
parents | be04df47d5fe |
children | 3e963697ee61 |
files | tazbb/stuff/tazbb |
line diff
1.1 --- a/tazbb/stuff/tazbb Mon Aug 30 01:08:38 2010 +0000 1.2 +++ b/tazbb/stuff/tazbb Mon Aug 30 11:56:07 2010 +0200 1.3 @@ -424,13 +424,26 @@ 1.4 . $BUILD_WOK/$pkg/receipt 1.5 MISSING="" 1.6 for i in $WANTED $BUILD_DEPENDS ; do 1.7 - if [ ! -f $BUILD_WOK/$i/taz/*/receipt ]; then 1.8 - case " $MISSING " in 1.9 - *\ $i\ *);; 1.10 - *) echo -n " $i";; 1.11 - esac 1.12 - MISSING="$MISSING $i" 1.13 + # Verify that the dependancy exists and is older 1.14 + if [ -f $BUILD_WOK/$i/taz/*/receipt ] && 1.15 + [ $BUILD_WOK/$pkg/taz/*/receipt 1.16 + -nt $BUILD_WOK/$i/taz/*/receipt ]; then 1.17 + WANTED="" 1.18 + . $BUILD_WOK/$i/receipt 1.19 + [ -n "$WANTED" ] && continue 1.20 + # This dependancy may be cooked 1.21 + # by another package 1.22 + [ -f $BUILD_WOK/$WANTED/taz/*/receipt ] && 1.23 + [ $BUILD_WOK/$pkg/taz/*/receipt 1.24 + -nt $BUILD_WOK/$WANTED/taz/*/receipt ] && 1.25 + continue 1.26 + i=$WANTED 1.27 fi 1.28 + case " $MISSING " in 1.29 + *\ $i\ *);; 1.30 + *) echo -n " $i";; 1.31 + esac 1.32 + MISSING="$MISSING $i" 1.33 done 1.34 echo "" 1.35 done | awk '