X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FUtils.pm;h=440daa3251d1e9003064bd638a2d9d19e9277643;hb=99d891a5a0d1e06d6d63aa61473c63752e71a4fd;hp=e1b6440b3b1d5ebff338f06fe726999c9c7bb0a6;hpb=812a28c90c5b43bdf5ce87f1b2a688725e552429;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Utils.pm b/lib/Catalyst/Utils.pm index e1b6440..440daa3 100644 --- a/lib/Catalyst/Utils.pm +++ b/lib/Catalyst/Utils.pm @@ -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; }