X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FApp%2FFatPacker.pm;h=28e7c075503d80e6b5522fdf4f2dca30e3404a65;hb=6d86a641f475a53f598bbadff9e0a6f39062997a;hp=cfa2db80aec9d7b0d95fcc7247f3dfc5ce67b2c7;hpb=9fecf34853eb73b3f1f37ebc0af4b9a541650ba7;p=p5sagit%2FApp-FatPacker.git diff --git a/lib/App/FatPacker.pm b/lib/App/FatPacker.pm index cfa2db8..28e7c07 100644 --- a/lib/App/FatPacker.pm +++ b/lib/App/FatPacker.pm @@ -14,7 +14,7 @@ use File::Copy qw(copy); use File::Path qw(mkpath rmtree); use B qw(perlstring); -our $VERSION = '0.010005'; # 0.10.5 +our $VERSION = '0.010007'; # 0.10.7 $VERSION = eval $VERSION; @@ -142,11 +142,16 @@ sub script_command_packlists_for { sub packlists_containing { my ($self, $targets) = @_; - my @targets = @$targets; + my @targets; { local @INC = ('lib', @INC); - foreach my $t (@targets) { - require $t; + foreach my $t (@$targets) { + unless (eval { require $t; 1}) { + warn "Failed to load ${t}: $@\n" + ."Make sure you're not missing a packlist as a result\n"; + next; + } + push @targets, $t; } } my @search = grep -d $_, map catdir($_, 'auto'), @INC;