Updated utils
Sebastian Riedel [Sat, 30 Apr 2005 03:16:13 +0000 (03:16 +0000)]
lib/Catalyst/Utils.pm

index e1b6440..440daa3 100644 (file)
@@ -112,7 +112,11 @@ sub home {
         my $subdir = dir($home)->subdir($append);
         for ( split '/', $name ) { $home = dir($home)->parent }
         if ( $home =~ /blib$/ ) { $home = dir($home)->parent }
-        elsif ( !-f file( $home, 'Makefile.PL' ) ) { $home = $subdir }
+        elsif (!-f file( $home, 'Makefile.PL' )
+            && !-f file( $home, 'Build.PL' ) )
+        {
+            $home = $subdir;
+        }
     }
     return $home;
 }