From: Marcus Ramberg Date: Thu, 23 Jun 2005 19:32:43 +0000 (+0000) Subject: fix: Allow overriding home/root X-Git-Tag: 5.7099_04~1293 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=e014304098660a60d762bbb8abc3aecc3b4ca66f fix: Allow overriding home/root --- diff --git a/Changes b/Changes index b3929ff..6b86d02 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ This file documents the revision history for Perl extension Catalyst. -5.24 2005-00-00 00:00:00 +5.30 2005-00-00 00:00:00 + - Allow overriding home/root in config. - make module build cons README automatically. - prettify home path by resolving '..' (Andy Grundman) - improved helper templates a bit, new naming scheme for tests... diff --git a/lib/Catalyst/Setup.pm b/lib/Catalyst/Setup.pm index d3b1da1..be83e17 100644 --- a/lib/Catalyst/Setup.pm +++ b/lib/Catalyst/Setup.pm @@ -360,8 +360,8 @@ sub setup_home { } if ( $home ) { - $class->config->{home} = $home; - $class->config->{root} = dir($home)->subdir('root'); + $class->config->{home} ||= $home; + $class->config->{root} ||= dir($home)->subdir('root'); } }