]> git.donarmstrong.com Git - wannabuild.git/blobdiff - bin/wanna-build
Don't change state on give-back if we're already in needs-build.
[wannabuild.git] / 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";