summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-07-18 21:41:24 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-07-18 21:41:24 +0400
commitc43565ae26ec1821d5a8676296d0008cab5f16af (patch)
tree9b6bfb6a52581877ceb8176a7a51ee98bffc194f
parentbb071f301e1abc131ba63c1a8eb165f173dd4fcf (diff)
downloaddh-smf-c43565ae26ec1821d5a8676296d0008cab5f16af.tar.gz
check whether lib/svc/manifest exists
-rwxr-xr-xdh_smf19
1 files changed, 11 insertions, 8 deletions
diff --git a/dh_smf b/dh_smf
index 0bbacf0..9108328 100755
--- a/dh_smf
+++ b/dh_smf
@@ -120,15 +120,18 @@ foreach my $package ( @{ $dh{DOPACKAGES} } ) {
# Get a list of all manifests in package
my @manifests = ();
- find(
- {
- wanted => sub {
- -f $_ && /^.*\.xml\z/s && push @manifests, $File::Find::name;
+ if ( -d "$tmp/lib/svc/manifest" ) {
+ find(
+ {
+ wanted => sub {
+ -f $_ && /^.*\.xml\z/s && push @manifests,
+ $File::Find::name;
+ },
+ no_chdir => 1,
},
- no_chdir => 1,
- },
- "$tmp/lib/svc/manifest"
- );
+ "$tmp/lib/svc/manifest"
+ );
+ }
next unless @manifests;