summaryrefslogtreecommitdiff
path: root/dh
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-28 18:22:44 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-28 18:22:44 -0400
commit17bf50c840dcbc9cece5b6a18ed0fe1574bf99a0 (patch)
treed96110160f2066188486b95cd04674e39c4c0e85 /dh
parent2b7dbcb1ad2d039b9c5f4c4dd0f03156dc3960ba (diff)
logic simplification
Diffstat (limited to 'dh')
-rwxr-xr-xdh8
1 files changed, 4 insertions, 4 deletions
diff --git a/dh b/dh
index 8e781b6..775e949 100755
--- a/dh
+++ b/dh
@@ -239,9 +239,9 @@ inhibit_log();
# server.
if (is_make_jobserver_unavailable()) {
clean_jobserver_makeflags();
- # Enable parallel (no maximum) if a value was not previously
+ # Implicitly enable parallel (no maximum) if a value was not previously
# specified.
- $dh{PARALLEL} = 0 if !defined $dh{PARALLEL};
+ $dh{PARALLEL} = 0 unless defined $dh{PARALLEL};
}
# Definitions of sequences.
@@ -536,8 +536,8 @@ sub run {
# to prevent them from being acted on.
push @options, map { "-N$_" } @exclude;
- # Pass --parallel to dh_auto_* commands if requested
- if (defined $dh{PARALLEL} && ($dh{PARALLEL} == 0 || $dh{PARALLEL} > 1)
+ # Pass --parallel to dh_auto_* commands.
+ if (defined $dh{PARALLEL} && $dh{PARALLEL} != 1
&& $command =~ /^dh_auto_/) {
push @options, "--parallel" . ($dh{PARALLEL} > 1 ? "=$dh{PARALLEL}" : "");
}