]> git.donarmstrong.com Git - wannabuild.git/commitdiff
Don't change state on give-back if we're already in needs-build.
authorKurt Roeckx <kurt@roeckx.be>
Mon, 14 Sep 2009 17:28:55 +0000 (17:28 +0000)
committerKurt Roeckx <kurt@roeckx.be>
Mon, 14 Sep 2009 17:28:55 +0000 (17:28 +0000)
It would go to BD-Uinstallable if already in needs-build state.

bin/wanna-build

index 785effb6be45ecc5400ec37c49baf410859e63a5..cdfd60c86b03c80684ad730a2c8b476fdfd3c139 100755 (executable)
@@ -897,6 +897,12 @@ sub add_one_needsbuild {
        }
        $state = $pkg->{'state'};
 
+       if ($state eq "Needs-Build")
+       {
+               print "$name: Already in Needs-Build.\n";
+               return;
+       }
+
        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";