From 91eb51b3985fb6d7b4f21443aeba4228f61ca4f5 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Mon, 24 Dec 2018 13:23:18 +0000 Subject: dh: Special case cli-options() with no options Signed-off-by: Niels Thykier --- dh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dh') diff --git a/dh b/dh index a1a4122b..e3d3c60e 100755 --- a/dh +++ b/dh @@ -1071,6 +1071,9 @@ sub can_skip { return 0 if pkgfile($pkgs, $need) ne ''; } elsif ($type eq 'cli-options') { $had_cli_options = 1; + # If cli-options is empty, we no the helper does not + # react to any thing and can always be skipped. + next if $need =~ m/^\s*$/; # Long options are subject to abbreviations so it is # very difficult to implement this optimization with # long options. -- cgit v1.2.3