From: Andreas Barth Date: Wed, 3 Mar 2010 07:05:26 +0000 (+0000) Subject: list_order: switch default for needs-builds to CWn X-Git-Url: https://git.donarmstrong.com/?p=wannabuild.git;a=commitdiff_plain;h=87f1c5534a52e69ac352e75fc0e6f1318257345f list_order: switch default for needs-builds to CWn --- diff --git a/bin/wanna-build b/bin/wanna-build index 66514e8..6ced743 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -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);