X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FApp%2FFatPacker.pm;h=84f391025874286830851ab71979ccfd94c3b9a1;hb=3e4ff43e440565ad645e9f05a7e57f8ad56deed0;hp=8b623ac9e8a725a7e6b7c563fd9265381934a617;hpb=f147c6f08a0d3d16fb512f65bae989850a6afc90;p=p5sagit%2FApp-FatPacker.git diff --git a/lib/App/FatPacker.pm b/lib/App/FatPacker.pm index 8b623ac..84f3910 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.009018'; # 0.009.017 +our $VERSION = '0.010002'; # 0.10.2 $VERSION = eval $VERSION; @@ -117,7 +117,8 @@ sub trace { my $output = $opts{output}; my $trace_opts = join ',', $output||'>&STDOUT', @{$opts{use}||[]}; - local $ENV{PERL5OPT} = '-MApp::FatPacker::Trace='.$trace_opts; + local $ENV{PERL5OPT} = join ' ', + ($ENV{PERL5OPT}||()), '-MApp::FatPacker::Trace='.$trace_opts; my @args = @{$opts{args}||[]}; @@ -142,8 +143,11 @@ sub script_command_packlists_for { sub packlists_containing { my ($self, $targets) = @_; my @targets = @$targets; - foreach my $t (@targets) { - require $t; + { + local @INC = ('lib', @INC); + foreach my $t (@targets) { + require $t; + } } my @search = grep -d $_, map catdir($_, 'auto'), @INC; my %pack_rev; @@ -334,7 +338,7 @@ Or, with more step-by-step control: See the documentation for the L script itself for more information. -The programmatic API for this code is not yet fully decided, hence the 0.9 +The programmatic API for this code is not yet fully decided, hence the 0.x release version. Expect that to be cleaned up for 1.0. =head1 SEE ALSO @@ -343,7 +347,7 @@ L
=head1 SUPPORT -Your current best avenue is to come annoy annoy mst on #toolchain on +Your current best avenue is to come annoy mst on #toolchain on irc.perl.org. There should be a non-IRC means of support by 1.0. =head1 AUTHOR @@ -372,6 +376,8 @@ dolmen - Olivier Mengué (cpan:DOLMEN) djerius - Diab Jerius (cpan:DJERIUS) +haarg - Graham Knop (cpan:HAARG> + Many more people are probably owed thanks for ideas. Yet another doc nit to fix.