From 815c43d41bb839c2161e3efd6b493da75a31838b Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Thu, 30 Jul 2009 00:42:50 +0200 Subject: [PATCH] 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. --- bin/wanna-build | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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" ); -- 2.39.5