Change 33927 by rgs@stcosmo on 2008/05/25 21:14:40
Subject: [PATCH] lib.pm should not warn about loading .par files
From: Paul Fenwick <pjf@perltraining.com.au>
Date: Thu, 22 May 2008 23:24:34 +1000
Message-ID: <48357412.5020703@perltraining.com.au>
Affected files ...
... //depot/perl/lib/lib_pm.PL#14 edit
Differences ...
==== //depot/perl/lib/lib_pm.PL#14 (text) ====
Index: perl/lib/lib_pm.PL
--- perl/lib/lib_pm.PL#13~28928~ 2006-10-03 07:53:33.000000000 -0700
+++ perl/lib/lib_pm.PL 2008-05-25 14:14:40.000000000 -0700
@@ -58,7 +58,7 @@
print OUT <<'!NO!SUBS!';
our @ORIG_INC = @INC; # take a handy copy of 'original' value
-our $VERSION = '0.5565';
+our $VERSION = '0.56';
my $Is_MacOS = $^O eq 'MacOS';
my $Mac_FS;
if ($Is_MacOS) {
@@ -79,7 +79,7 @@
$path = _nativize($path);
- if (-e $path && ! -d _) {
+ if ($path !~ /\.par$/i && -e $path && ! -d _) {
require Carp;
Carp::carp("Parameter to use lib must be directory, not file");
}
End of Patch.