summaryrefslogtreecommitdiff
path: root/dh_bugfiles
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-05-05 13:32:18 -0400
committerJoey Hess <joey@kitenet.net>2013-05-05 13:32:18 -0400
commitfd04390350046c0edc8f21c0c8baf4ae0313a00a (patch)
tree1ec6446e5dbf49d1c7ec4b589e365b4b756a324b /dh_bugfiles
parent89c2e3111c13cd85942dd1063ae5a3ab365278e2 (diff)
dh: Skips running commands that it can tell do nothing.
This is determined by the presence of special PROMISE directives within commands that provide a high-level description of the command. Note that when dh is passed additional debhelper options, it cannot tell if these change the behavior of commands, and so it stops skipping any commands.
Diffstat (limited to 'dh_bugfiles')
-rwxr-xr-xdh_bugfiles4
1 files changed, 3 insertions, 1 deletions
diff --git a/dh_bugfiles b/dh_bugfiles
index 4444f0f..83428f5 100755
--- a/dh_bugfiles
+++ b/dh_bugfiles
@@ -71,6 +71,7 @@ my %bugfile_types = (
"control" => "bug-control",
"presubj" => "bug-presubj",
);
+# PROMISE: DH NOOP WITHOUT bug-script bug-control bug-presubj
foreach my $package (@{$dh{DOPACKAGES}}) {
next if is_udeb($package);
@@ -85,7 +86,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
my $file=pkgfile($package,$pkgfilename);
if ($file) {
$bugfiles{$type}=$file;
- } elsif (-f "debian/$pkgfilename" && $dh{PARAMS_ALL}) {
+ }
+ elsif (-f "debian/$pkgfilename" && $dh{PARAMS_ALL}) {
$bugfiles{$type}="debian/$pkgfilename";
}
}