summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2018-11-20 07:48:59 +0000
committerNiels Thykier <niels@thykier.net>2018-11-20 07:49:06 +0000
commite29672f58b67f389ea100be304f9240180d01b3e (patch)
tree8d3cb73631ed3ed4883200f71bd2eff5c6e6fa99 /debian
parent67feb17cb585def761daa8c33760492fc61f670d (diff)
downloadbash-completion-e29672f58b67f389ea100be304f9240180d01b3e.tar.gz
dh_bash-comp: Add a NOOP promise
The NOOP promise enables dh(1) to skip the call to dh_bash-completion when dh can conclude (from the promise and the situation) that dh_bash-completion will be a NOOP. In the particular case, we know that dh_bash-completion will do nothing when there is no "bash-completion" pkgfile regardless of the command-line options. Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/extra/debhelper/dh_bash-completion2
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/extra/debhelper/dh_bash-completion b/debian/extra/debhelper/dh_bash-completion
index 47109ab5..f96704b0 100755
--- a/debian/extra/debhelper/dh_bash-completion
+++ b/debian/extra/debhelper/dh_bash-completion
@@ -38,6 +38,8 @@ init();
my $srcdir = '.';
$srcdir = $dh{SOURCEDIR}."/" if defined $dh{SOURCEDIR};
+# PROMISE: DH NOOP WITHOUT bash-completion cli-options()
+
PKG: foreach my $package (@{$dh{DOPACKAGES}}) {
next if is_udeb($package);