diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-07-18 16:55:02 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-07-18 16:55:02 +0400 |
commit | 33464750454b650d1bf53e8ddf66928df453a61b (patch) | |
tree | 2afe7be5b79e523710b8b62a62660a7123c114d6 /dh_smf | |
parent | b15252c922f1b8d9681ca5beea6b28bd93b64fcb (diff) | |
download | dh-smf-33464750454b650d1bf53e8ddf66928df453a61b.tar.gz |
There could be no manifests
Diffstat (limited to 'dh_smf')
-rwxr-xr-x | dh_smf | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -118,7 +118,7 @@ foreach my $package ( @{ $dh{DOPACKAGES} } ) { if ( $smf ne '' && !$dh{'ONLYSCRIPTS'} ) { my $svcdir = "$tmp/lib/svc"; if ( !-d "$svcdir" ) { - doit( "install", "-d", "$svcdir" ); + doit( 'install', '-d', "$svcdir" ); } my $cp_v = $dh{'VERSION'} ? '-v' : ''; complex_doit("cp -a $cp_v -f $smf/* $svcdir/"); @@ -136,6 +136,8 @@ foreach my $package ( @{ $dh{DOPACKAGES} } ) { "$tmp/lib/svc/manifest" ); + next unless @manifests; + # TODO: validate XML? # Read all services from all manifests: @@ -189,6 +191,8 @@ foreach my $package ( @{ $dh{DOPACKAGES} } ) { && $_->{'exec_method'}->{'start'}->{'exec'} ne ':true' } @services; + error("No SMF services found in @manifests") unless @services; + print Dumper(@services); # debug if ( !$dh{NOSCRIPTS} ) { |