summaryrefslogtreecommitdiff
path: root/dh
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2018-12-24 13:23:18 +0000
committerNiels Thykier <niels@thykier.net>2018-12-24 13:23:18 +0000
commit91eb51b3985fb6d7b4f21443aeba4228f61ca4f5 (patch)
tree97b8c7e7805aa0d9b3a4712e9f7b2f517de223f4 /dh
parent94be200dff62fdbd12479fedbe649b69e568a9fc (diff)
downloaddebhelper-91eb51b3985fb6d7b4f21443aeba4228f61ca4f5.tar.gz
dh: Special case cli-options() with no options
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh')
-rwxr-xr-xdh3
1 files changed, 3 insertions, 0 deletions
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.