[Bast-commits] r7790 - in local-lib/1.000/trunk: . lib/local
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Fri Oct 16 02:06:29 GMT 2009
Author: t0m
Date: 2009-10-16 02:06:29 +0000 (Fri, 16 Oct 2009)
New Revision: 7790
Modified:
local-lib/1.000/trunk/Changes
local-lib/1.000/trunk/lib/local/lib.pm
Log:
Simpler. Technically less correct, but who cares.
Modified: local-lib/1.000/trunk/Changes
===================================================================
--- local-lib/1.000/trunk/Changes 2009-10-16 01:54:34 UTC (rev 7789)
+++ local-lib/1.000/trunk/Changes 2009-10-16 02:06:29 UTC (rev 7790)
@@ -1,7 +1,6 @@
Revision history for local::lib
- - Use CPAN::Version (if available) to do version comparison for loading
- File::HomeDir is it works more correctly with development releases
+ - Suppress warning if a File::HomeDir dev release is installed.
1.004008 2009-10-13
Modified: local-lib/1.000/trunk/lib/local/lib.pm
===================================================================
--- local-lib/1.000/trunk/lib/local/lib.pm 2009-10-16 01:54:34 UTC (rev 7789)
+++ local-lib/1.000/trunk/lib/local/lib.pm 2009-10-16 02:06:29 UTC (rev 7790)
@@ -157,11 +157,8 @@
my ($user) = ($path =~ /^~([^\/]+)/); # can assume ^~ so undef for 'us'
my $tried_file_homedir;
my $homedir = do {
- if (
- eval { require File::HomeDir }
- # Use CPAN::Version if available as it deals correctly with dev releases
- && (eval { require CPAN::Version; } ? CPAN::Version->vgt($File::HomeDir::VERSION, 0.65) : $File::HomeDir::VERSION >= 0.65
- )) {
+ no warnings 'numeric'; # Disable warning caused by version comparison with dev releases..
+ if (eval { require File::HomeDir } && $File::HomeDir::VERSION >= 0.65) {
$tried_file_homedir = 1;
if (defined $user) {
File::HomeDir->users_home($user);
More information about the Bast-commits
mailing list