diff options
author | Joey Hess <joey@kitenet.net> | 2013-05-05 13:32:18 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-05-05 13:32:18 -0400 |
commit | fd04390350046c0edc8f21c0c8baf4ae0313a00a (patch) | |
tree | 1ec6446e5dbf49d1c7ec4b589e365b4b756a324b /dh_installinit | |
parent | 89c2e3111c13cd85942dd1063ae5a3ab365278e2 (diff) | |
download | debhelper-fd04390350046c0edc8f21c0c8baf4ae0313a00a.tar.gz |
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_installinit')
-rwxr-xr-x | dh_installinit | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dh_installinit b/dh_installinit index 29937c5e..e4b67d01 100755 --- a/dh_installinit +++ b/dh_installinit @@ -155,6 +155,8 @@ init(options => { "remove-d" => \$dh{D_FLAG}, }); +# PROMISE: DH NOOP WITHOUT service tmpfile upstart init init.d + foreach my $package (@{$dh{DOPACKAGES}}) { my $tmp=tmpdir($package); @@ -204,7 +206,6 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } my $job=pkgfile($package,"upstart"); - if ($job ne '' && ! $dh{ONLYSCRIPTS}) { if (! -d "$tmp/etc/init") { doit("install","-d","$tmp/etc/init"); |