]> git.donarmstrong.com Git - wannabuild.git/commitdiff
Make --give-back move package into BD-Uninstallable
authorJoachim Breitner <nomeata@debian.org>
Wed, 29 Jul 2009 22:42:50 +0000 (00:42 +0200)
committerJoachim Breitner <nomeata@debian.org>
Wed, 29 Jul 2009 22:42:50 +0000 (00:42 +0200)
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

index 7211738c8d00506f94660eceb18ef10ddc7090bb..410946391cb1e610aedba50baf277a3cc0dcb50e 100755 (executable)
@@ -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" );