]> git.donarmstrong.com Git - wannabuild.git/commitdiff
list_order: switch default for needs-builds to CWn
authorAndreas Barth <aba@not.so.argh.org>
Wed, 3 Mar 2010 07:05:26 +0000 (07:05 +0000)
committerAndreas Barth <aba@not.so.argh.org>
Wed, 3 Mar 2010 07:05:26 +0000 (07:05 +0000)
bin/wanna-build

index 66514e837d755d43906440b345c2a47ddca1c6bf..6ced74391379af1458d42e39f9975ad658528c51 100755 (executable)
@@ -239,8 +239,8 @@ while( @ARGV && $ARGV[0] =~ /^-/ ) {
 
 $op_mode = $category ? "set-failed" : "set-building"
        if !$op_mode; # default operation
-$list_order = $list_state eq "failed" ? 'fPcpsn' : 'PScpsn'
-       if !$list_order and $list_state;
+$list_order = { "failed" =>  'fPcpsn', "needs-build" => "CWn" }->{$list_state} if !$list_order and $list_state;
+$list_order ||= 'PScpsn';
 $distribution ||= "unstable";
 die "Bad distribution '$distribution'\n"
        if !isin($distribution, keys %conf::distributions);