diff options
| author | Niels Thykier <niels@thykier.net> | 2019-07-16 20:19:44 +0000 |
|---|---|---|
| committer | Niels Thykier <niels@thykier.net> | 2019-07-16 20:19:44 +0000 |
| commit | eebc020b26195c71e2a056e4e9a231a9ec01bee1 (patch) | |
| tree | 0201745462ef61c9cc60e1a68d20ba5550639124 /dh_installinit | |
| parent | 789eb18ba0e09f87fefc33c2ffd1e6f6e5654ce7 (diff) | |
| download | debhelper-eebc020b26195c71e2a056e4e9a231a9ec01bee1.tar.gz | |
dh_installinit: Also cover .default files
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_installinit')
| -rwxr-xr-x | dh_installinit | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dh_installinit b/dh_installinit index cd038af1..5aecf25b 100755 --- a/dh_installinit +++ b/dh_installinit @@ -233,8 +233,8 @@ init(options => { my %snippet_options = ('snippet-order' => 'service'); if (my $name = $dh{NAME}) { - if (!grep { -f "debian/$_.${name}.init" } @{$dh{DOPACKAGES}}) { - error("--name=$dh{NAME} option specified, but init script not found"); + if (!grep { -f "debian/$_.${name}.init" || -f "debian/$_.${name}.default" } @{$dh{DOPACKAGES}}) { + error("--name=$dh{NAME} option specified, but init script nor default file not found"); } } |
