summaryrefslogtreecommitdiff
path: root/dh_smf
diff options
context:
space:
mode:
Diffstat (limited to 'dh_smf')
-rwxr-xr-xdh_smf11
1 files changed, 5 insertions, 6 deletions
diff --git a/dh_smf b/dh_smf
index 4ecacad..b67d042 100755
--- a/dh_smf
+++ b/dh_smf
@@ -185,15 +185,14 @@ foreach my $package ( @{ $dh{DOPACKAGES} } ) {
],
);
while ( my ( $svc, $attrs ) = each %{ $xml->{'service'} } ) {
- push @services, mkservices( $svc, $attrs );
+ push @services, mkservices( $svc, $attrs )
+ unless $svc =~ /milestone\//;
}
}
-# 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;
+ # Ignore dummy services.
+ @services =
+ grep { $_->{'exec_method'}->{'start'}->{'exec'} ne ':true' } @services;
error("No SMF services found in @manifests") unless @services;