From: Andreas Barth Date: Sat, 19 Jun 2010 20:18:52 +0000 (+0000) Subject: allow api: ... in ~/.wanna-build.yaml X-Git-Url: https://git.donarmstrong.com/?p=wannabuild.git;a=commitdiff_plain;h=2c87548d26983dd7b4c52b1d8e48a0a270cbd6bc allow api: ... in ~/.wanna-build.yaml --- diff --git a/bin/wanna-build b/bin/wanna-build index 69cb3ec..b448001 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -65,7 +65,7 @@ our ($verbose, $mail_logs, $list_order, $list_state, our $Pas = '/org/buildd.debian.org/etc/packages-arch-specific/Packages-arch-specific'; our $simulate = 0; our $simulate_edos = 0; -our $api = 0; # allow buildds to specify an different api +our $api = undef; # allow buildds to specify an different api # global vars $ENV{'PATH'} = "/bin:/usr/bin:/usr/local/bin:/org/wanna-build/bin/"; @@ -357,6 +357,8 @@ if (not $yamlmap) { } $list_order = $yamlmap->{"list-order"}{$list_state} if !$list_order and $list_state; $list_order ||= $yamlmap->{"list-order"}{'default'}; +$api //= $yamlmap->{"api"}; +$api //= 0; my $dbh;