From 2c87548d26983dd7b4c52b1d8e48a0a270cbd6bc Mon Sep 17 00:00:00 2001 From: Andreas Barth Date: Sat, 19 Jun 2010 20:18:52 +0000 Subject: [PATCH] allow api: ... in ~/.wanna-build.yaml --- bin/wanna-build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2