projects
/
catagits/BackPAN-Web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
2593d57
)
Fix B::Index->_backpan_index_has_changed check for remote_mod_time
wreis [Wed, 3 Nov 2010 11:53:33 +0000 (08:53 -0300)]
lib/BackPAN/Index.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/BackPAN/Index.pm
b/lib/BackPAN/Index.pm
index
15cbbf9
..
df104fe
100644
(file)
--- a/
lib/BackPAN/Index.pm
+++ b/
lib/BackPAN/Index.pm
@@
-367,7
+367,7
@@
sub _backpan_index_has_changed {
$self->_backpan_index_file->touch;
my(undef, undef, $remote_mod_time) = head($self->backpan_index_url);
- return $remote_mod_time > $local_mod_time;
+ return defined $remote_mod_time && $remote_mod_time > $local_mod_time;
}