redownload badly cached files by download utility

Bug #692600 reported by Łukasz Nowak
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

If file in buildout:download-cache is incorrectly downloaded (eg. md5sum does not match) it would be good to have automatic redownload try.

Proposed scenario:

File X exists in cache as /download-cache/X

Its md5sum value is A, but passed to download utility md5sum value is B.

Buildout checks /download-cache/X, which is wrong (does not match B), so it silently downloads again passed url and rechecks md5sum. In case of failure raises exception related with checksum mismatch. In case of success continues.

Revision history for this message
Łukasz Nowak (ionowaklukasz) wrote :

I did fast implementation, only to show where it might be done eventually.

Revision history for this message
Łukasz Nowak (ionowaklukasz) wrote :

Please see attached updated version of patch and a test. I needed to redownload the good file to stabilise the test result, maybe I§ shall prove working of this feature in different part of this doctest?

Changed in zc.buildout:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers