diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-07-15 15:27:25 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-07-15 15:27:25 +0400 |
commit | 66cba99a4134578d5f4b7c934326a570e4a4ea1a (patch) | |
tree | cc570c0467519e17faa592f45a8c5e89b34d9660 | |
parent | 8808c156753c7e1aad2becb46f7239e2db310800 (diff) | |
download | dh-smf-66cba99a4134578d5f4b7c934326a570e4a4ea1a.tar.gz |
Ignore milestones and dummy services
-rwxr-xr-x | dh_smf | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -182,6 +182,13 @@ foreach my $package ( @{ $dh{DOPACKAGES} } ) { } } } + +# Ignore milestones and dummy services. A milestone is usually a dummy service as well + @services = grep { + $_->{'name'} !~ /milestone\// + && $_->{'exec_method'}->{'start'}->{'exec'} ne ':true' + } @services; + print Dumper(@services); # debug if ( !$dh{NOSCRIPTS} ) { |