cookutils rev 217
cook: dont try to pack if WANTED is blocked or broken
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 24 03:32:30 2011 +0200 (2011-05-24) |
parents | c734b58c9a91 |
children | 09db98305bae |
files | cook data/receipt |
line diff
1.1 --- a/cook Tue May 24 02:36:44 2011 +0200 1.2 +++ b/cook Tue May 24 03:32:30 2011 +0200 1.3 @@ -965,8 +965,15 @@ 1.4 1.5 # Check if wanted is built now so we have separate log files. 1.6 if [ "$WANTED" ] && [ ! -d "$WOK/$WANTED/install" ]; then 1.7 - if ! grep -q "^$WANTED$" $broken; then 1.8 - cook "$WANTED" 1.9 + if grep -q "^$WANTED$" $blocked; then 1.10 + echo "WANTED package is blocked: $WANTED" | tee -a $LOGS/$pkg.log 1.11 + exit 1 1.12 + fi 1.13 + if grep -q "^$WANTED$" $broken; then 1.14 + echo "WANTED package is broken: $WANTED" | tee -a $LOGS/$pkg.log 1.15 + exit 1 1.16 + else 1.17 + cook "$WANTED" || exit 1 1.18 fi 1.19 fi 1.20
2.1 --- a/data/receipt Tue May 24 02:36:44 2011 +0200 2.2 +++ b/data/receipt Tue May 24 03:32:30 2011 +0200 2.3 @@ -15,7 +15,7 @@ 2.4 # Rules to configure and make the package. 2.5 compile_rules() 2.6 { 2.7 - ./configure && make && make install 2.8 + ./configure $CONFIGURE_ARGS && make && make install 2.9 } 2.10 2.11 # Rules to gen a SliTaz package suitable for Tazpkg.