diff options
author | Niels Thykier <niels@thykier.net> | 2018-12-24 13:23:18 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2018-12-24 13:23:18 +0000 |
commit | 91eb51b3985fb6d7b4f21443aeba4228f61ca4f5 (patch) | |
tree | 97b8c7e7805aa0d9b3a4712e9f7b2f517de223f4 /dh | |
parent | 94be200dff62fdbd12479fedbe649b69e568a9fc (diff) | |
download | debhelper-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-x | dh | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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. |