- move to yaml-file
- building sorts by buildd, package name now
$op_mode = $category ? "set-failed" : "set-building"
if !$op_mode; # default operation
$op_mode = $category ? "set-failed" : "set-building"
if !$op_mode; # default operation
-$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);
$distribution ||= "unstable";
die "Bad distribution '$distribution'\n"
if !isin($distribution, keys %conf::distributions);
if (not $yamlmap) {
die "FATAL: no configuration found\n";
}
if (not $yamlmap) {
die "FATAL: no configuration found\n";
}
+$list_order = $yamlmap->{"list-order"}{$list_state} if !$list_order and $list_state;
+$list_order ||= $yamlmap->{"list-order"}{'default'};
+list-order:
+ default: PScpsn
+ failed: fPcpsn
+ needs-build: CWn
+ building: bn