projects
/
catagits/BackPAN-Web.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix B::Index->_backpan_index_has_changed check for remote_mod_time
[catagits/BackPAN-Web.git]
/
lib
/
BackPAN
/
Index.pm
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;
}