Commit b3e4e805 authored by Dmitry Bogatov's avatar Dmitry Bogatov

Refactor init.d.pm to simplify addressing #933109

parent 1da22309
Pipeline #72914 passed with stages
in 69 minutes and 12 seconds
......@@ -512,10 +512,9 @@ sub check_defaults {
sub check_missing_script {
my ($info) = @_;
for my $file ($info->sorted_index) {
if ( $file =~ m,etc/sv/([^/]+)/run$,
or $file =~ m,lib/systemd/system/(.*)\.service,) {
if ($file =~ m,lib/systemd/system/(.*)\.service,) {
my $service = $1;
tag 'package-supports-alternative-init-but-no-init.d-script',$file
unless $info->index_resolved_path("etc/init.d/${service}");
}
......@@ -526,6 +525,8 @@ sub check_missing_script {
tag 'directory-in-etc-sv-directory-without-executable-run-script',
$file
if not $file or not $file->is_executable;
tag 'package-supports-alternative-init-but-no-init.d-script',$file
unless $info->index_resolved_path("etc/init.d/${service}");
}
}
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment