From 87f1c5534a52e69ac352e75fc0e6f1318257345f Mon Sep 17 00:00:00 2001 From: Andreas Barth Date: Wed, 3 Mar 2010 07:05:26 +0000 Subject: [PATCH] list_order: switch default for needs-builds to CWn --- bin/wanna-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2