[Bps-public-commit] Module-Refresh branch, master, updated. 0.16-1-g40de516
Alex Vandiver
alexmv at bestpractical.com
Fri Apr 22 15:17:31 EDT 2011
The branch, master has been updated
via 40de516a85c2873638f006944ebe98f848e1320d (commit)
from c38a14ca25b8dba9cbc9abe005f9c987b67fb121 (commit)
Summary of changes:
lib/Module/Refresh.pm | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 40de516a85c2873638f006944ebe98f848e1320d
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Fri Apr 22 15:17:25 2011 -0400
Warnings avoidance for reloading a module not in %INC
diff --git a/lib/Module/Refresh.pm b/lib/Module/Refresh.pm
index d729f84..b1e16c0 100644
--- a/lib/Module/Refresh.pm
+++ b/lib/Module/Refresh.pm
@@ -93,7 +93,9 @@ sub refresh_module_if_modified {
return $self->new if !%CACHE;
my $mod = shift;
- if ( !$CACHE{$mod} ) {
+ if (!$INC{$mod}) {
+ return;
+ } elsif ( !$CACHE{$mod} ) {
$self->update_cache($mod);
} elsif ( $self->mtime( $INC{$mod} ) ne $CACHE{$mod} ) {
$self->refresh_module($mod);
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list