]> git.donarmstrong.com Git - debhelper.git/commitdiff
logic error
authorJoey Hess <joey@gnu.kitenet.net>
Thu, 29 Oct 2009 20:25:43 +0000 (16:25 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 29 Oct 2009 20:25:43 +0000 (16:25 -0400)
Debian/Debhelper/Dh_Buildsystems.pm

index 8713aab44fbaf28974d7b7bd0f5495ebb3c1adfe..f43c87d4820b8d6807705368324ac4978eba83be 100644 (file)
@@ -146,7 +146,7 @@ sub set_parallel {
                        $n = $1 if $opt =~ /^parallel=(\d+)$/;
                }
                if (defined $n && $n > 0) {
-                       if ($max && $n < $max) {
+                       if (!$max || $n < $max) {
                                $opt_parallel = $n;
                        }
                        else {