summaryrefslogtreecommitdiff
path: root/dh
diff options
context:
space:
mode:
Diffstat (limited to 'dh')
-rwxr-xr-xdh4
1 files changed, 3 insertions, 1 deletions
diff --git a/dh b/dh
index 35ef157c..9b158ead 100755
--- a/dh
+++ b/dh
@@ -874,7 +874,7 @@ foreach my $i (0..$stoppoint) {
}
next unless @todo;
- next if can_skip($command, @todo) && ! $dh{NO_ACT};
+ next if can_skip($command, @todo);
# No need to run the command for any packages handled by the
# override targets.
@@ -1031,6 +1031,8 @@ my %skipinfo;
sub can_skip {
my ($command, @packages) = @_;
+ return 0 if $dh{NO_ACT} and not $ENV{DH_INTERNAL_TEST_CAN_SKIP};
+
return 0 if $unoptimizable_user_option ||
(exists $ENV{DH_OPTIONS} && length $ENV{DH_OPTIONS});