cookutils diff cooker @ rev 26
cooker: add option --list= and log all stderr
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 06 04:07:11 2011 +0200 (2011-05-06) |
parents | 0eb341935f31 |
children | 107f17f16133 |
line diff
1.1 --- a/cooker Fri May 06 03:29:03 2011 +0200 1.2 +++ b/cooker Fri May 06 04:07:11 2011 +0200 1.3 @@ -38,8 +38,9 @@ 1.4 --notes Display all the cooknotes. 1.5 --note= Add a note to the cooknotes. 1.6 --pkg= Same as 'cook pkg' but with cooker log. 1.7 + --flavor= Cook all packages of a flavor. 1.8 + --list= Cook all package in the given list. 1.9 --cat= Cook all packages of a category. 1.10 - --flavor= Cook all packages of a flavor. 1.11 --all Find and cook all unbuilt packages. 1.12 1.13 EOT 1.14 @@ -258,8 +259,7 @@ 1.15 # Same as 'cook pkg' but with log for web interface. 1.16 pkg=${1#--pkg=} 1.17 echo "Cook started for: <a href='cooker.cgi?pkg=$pkg'>$pkg</a>" | log 1.18 - cook $pkg || broken 1.19 - emty_command ;; 1.20 + cook $pkg || broken ;; 1.21 --cat=*) 1.22 # Cook all packages of a category. 1.23 cat=${1#--cat=} 1.24 @@ -271,17 +271,26 @@ 1.25 done 1.26 strip_blocked 1.27 cook_order | tee $LOGS/cookorder.log 1.28 - cook_list 1.29 - emty_command ;; 1.30 + cook_list ;; 1.31 --flavor=*) 1.32 # Cook all packages of a flavor. 1.33 flavor=${1#--flavor=} 1.34 + [ ! -d "$SLITAZ/flavors/$flavor" ] && \ 1.35 + echo -e "\nSpecified flavor does not exist: $flavor\n" && exit 1 1.36 list=$SLITAZ/flavors/$flavor/packages.list 1.37 cp -a $list $cooklist 1.38 strip_blocked 1.39 cook_order | tee $LOGS/cookorder.log 1.40 - cook_list 1.41 - emty_command ;; 1.42 + cook_list ;; 1.43 + --list=*) 1.44 + # Cook a list og package given in argument. 1.45 + list=${1#--list=} 1.46 + [ ! -f "$list" ] && \ 1.47 + echo -e "\nSpecified list does not exist: $list\n" && exit 1 1.48 + cp -a $list $cooklist 1.49 + strip_blocked 1.50 + cook_order | tee $LOGS/cookorder.log 1.51 + cook_list ;; 1.52 --all) 1.53 # Try to build all unbuilt packages except blocked's. 1.54 echo "cooker:--all" > $command