From: Joachim Breitner Date: Wed, 29 Jul 2009 22:42:50 +0000 (+0200) Subject: Make --give-back move package into BD-Uninstallable X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=815c43d41bb839c2161e3efd6b493da75a31838b;p=wannabuild.git Make --give-back move package into BD-Uninstallable If the package is actually buildable, this will be noticed with the next trigger (max 15 minute delay). The other way around could cause unsuccesful builds if the buildd grabs the package before the next trigger. --- diff --git a/bin/wanna-build b/bin/wanna-build index 7211738..4109463 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -971,6 +971,13 @@ sub add_one_needsbuild { if ($state eq "BD-Uninstallable") { if ($opt_override) { print "$name: Forcing uninstallability mark to be removed. This is not permanent and might be reset with the next trigger run\n"; + + change_state( \$pkg, 'Needs-Build' ); + delete $pkg->{'Builder'}; + delete $pkg->{'Depends'}; + log_ta( $pkg, "--give-back" ); + $db{$name} = $pkg; + print "$name: given back\n" if $verbose; } else { print "$name: has uninstallable build-dependencies. Skipping\n", @@ -1011,7 +1018,8 @@ sub add_one_needsbuild { "Skipping.\n"; return; } - change_state( \$pkg, 'Needs-Build' ); + change_state( \$pkg, 'BD-Uninstallable' ); + $pkg->{'BD-Problem'} = "Installability of build dependencies not tested"; delete $pkg->{'Builder'}; delete $pkg->{'Depends'}; log_ta( $pkg, "--give-back" );