diff --git a/src/repository/opamRepository.ml b/src/repository/opamRepository.ml index 56d7c385dd3..f321669e707 100644 --- a/src/repository/opamRepository.ml +++ b/src/repository/opamRepository.ml @@ -102,7 +102,7 @@ let fetch_from_cache = List.fold_left (fun (hit, misses) ck -> let f = cache_file cache_dir ck in if OpamFilename.exists f - then (Some f, misses) + then (if hit = None then (Some f, misses) else (hit, misses)) else (hit, f :: misses)) (None, []) checksums with