# HG changeset patch # User Christophe Lincoln # Date 1304627763 -7200 # Node ID 58d6d4ca71d4f2c49960ce520aa846e2374c3754 # Parent c7af43cc8a07aa24fc6d7612180ee8973f28fc9b cooker: add --flavor=name to build all packages of a flavor diff -r c7af43cc8a07 -r 58d6d4ca71d4 cooker --- a/cooker Thu May 05 22:27:09 2011 +0200 +++ b/cooker Thu May 05 22:36:03 2011 +0200 @@ -35,7 +35,8 @@ --usage Display this short usage. --setup Setup the Cooker environment. --pkg= Same as 'cook pkg' but with cooker log. - --cat= Cook all package of a category. + --cat= Cook all packages of a category. + --flavor= Cook all packages of a flavor. --all Find and cook all unbuilt packages. EOT @@ -188,7 +189,6 @@ do if [ ! -d "$wok/$pkg/install" ]; then echo "Cook started for: $pkg" | log - cook $pkg || broken sed -i /^${pkg}$/d $cooklist fi @@ -230,7 +230,7 @@ # Cook all reverse dependencies for a packages. This command let us # control the Cooker manually for commit that will cook a lot of packages. # - # Use hg commit ? Ex: hg commit -m "Message bla bla | cooker:--reverse" + # Use hg commit ? Ex: hg commit -m "Message bla bla | cooker:reverse" # pkg=${1#--reverse=} [ ! -d "$wok/$pkg" ] && echo "No package $2 found." && exit 0 @@ -260,6 +260,15 @@ cook_order | tee $LOGS/cookorder.log cook_list emty_command ;; + --flavor=*) + # Cook all packages of a flavor. + flavor=${1#--flavor=} + list=$SLITAZ/flavors/$flavor/packages.list + cp -a $list $cooklist + strip_blocked + cook_order | tee $LOGS/cookorder.log + cook_list + emty_command ;; --all) # Try to build all unbuilt packages except blocked's. echo "cooker:--all" > $command