diff options
Diffstat (limited to 'urpm/mirrors.pm')
-rw-r--r-- | urpm/mirrors.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/urpm/mirrors.pm b/urpm/mirrors.pm index c9223fa7..7cee554f 100644 --- a/urpm/mirrors.pm +++ b/urpm/mirrors.pm @@ -155,6 +155,9 @@ sub _cache__may_clean_if_outdated { time() > $cache->{time} + 24*60*60 * $urpm->{options}{'days-between-mirrorlist-update'}) { $urpm->{log}("not using outdated cached mirror list $mirrorlist"); _trigger_cache_update ($urpm, $cache); + } elsif (!$cache->{product_id_mtime}) { + $urpm->{log}("cached mirror list uses an old format, invalidating it"); + _trigger_cache_update ($urpm, $cache, 1); } elsif ($cache->{product_id_mtime} && _product_id_mtime() != $cache->{product_id_mtime}) { $urpm->{log}("not using cached mirror list $mirrorlist since product id file changed"); _trigger_cache_update ($urpm, $cache, 1); |