Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37885148
en ru br
ALT Linux repos
S:2.03-alt3
5.0: 2.03-alt2
4.1: 2.03-alt1
4.0: 2.03-alt1

Group :: Development/Perl
RPM: perl-Class-Loader

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: perl-Class-Loader-2.03-alt-no-cpan.patch
Download


--- Class-Loader-2.03/lib/Class/Loader.pm-	2005-04-28 03:55:33.000000000 +0400
+++ Class-Loader-2.03/lib/Class/Loader.pm	2011-10-06 08:27:38.610931798 +0400
@@ -43,7 +43,8 @@ sub _load {
 
     if ($module) { 
         unless (eval "require $module") { 
-            if ($source{CPAN}) { 
+            use constant USE_CPAN => $ENV{CLASS_LOADER_CPAN};
+            if (USE_CPAN && $source{CPAN}) { 
                 require CPAN; CPAN->import;
                 my $obj = CPAN::Shell->expand ('Module', $module);
                 return unless $obj;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin