[svn:Module-Build] r13665 - Module-Build/trunk/lib/Module/Build

[email protected] Wed, 16 Dec 2009 21:37:50 -0800 (PST)
Newsgroups perl.module.build.checkins
Message-ID <[email protected]>
Author: dagolden
Date: Wed Dec 16 21:37:49 2009
New Revision: 13665

Modified:
   Module-Build/trunk/lib/Module/Build/Base.pm

Log:
Let module_name heuristics use pure unix paths

Ironically, this might be more portable for VMS


Modified: Module-Build/trunk/lib/Module/Build/Base.pm
==============================================================================
--- Module-Build/trunk/lib/Module/Build/Base.pm	(original)
+++ Module-Build/trunk/lib/Module/Build/Base.pm	Wed Dec 16 21:37:49 2009
@@ -1094,7 +1094,7 @@
     $mod_name =~ s{-}{::}g;
     $mod_path =~ s{-}{/}g;
     $mod_path .= ".pm";
-    if ( -e $mod_path || -e File::Spec->catfile('lib', $mod_path) ) {
+    if ( -e $mod_path || -e "lib/$mod_path" ) {
       $p->{module_name} = $mod_name;
     }
     else {