diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-07-18 21:41:24 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-07-18 21:41:24 +0400 |
commit | c43565ae26ec1821d5a8676296d0008cab5f16af (patch) | |
tree | 9b6bfb6a52581877ceb8176a7a51ee98bffc194f | |
parent | bb071f301e1abc131ba63c1a8eb165f173dd4fcf (diff) | |
download | dh-smf-c43565ae26ec1821d5a8676296d0008cab5f16af.tar.gz |
check whether lib/svc/manifest exists
-rwxr-xr-x | dh_smf | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -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; |