• Julien Muchembled's avatar
    download: clean-up, fix, optimization · 4ccb79e9
    Julien Muchembled authored
    An optimization is to avoid temporary file when possible: a rename
    (or hard link) is not always possible (different mount points).
    
    Another one is to not check md5sum twice when using cache file.
    
    Fall-back mode is ignored if an MD5 checksum is given.
    
    In case of checksum mismatch for a cached path, remove it and
    download again, mainly to cover the following cases:
    - the url content changes and the user updates the checksum
    - buildout killed while downloading directly to cache
      (see above optimization)
    - shutil.copyfile is interrupted
    4ccb79e9
Name
Last commit
Last update
bootstrap Loading commit data...
doc Loading commit data...
specifications Loading commit data...
src/zc Loading commit data...
zc.recipe.egg_ Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CHANGES.SlapOS.rst Loading commit data...
CHANGES.rst Loading commit data...
COPYRIGHT.txt Loading commit data...
DEVELOPERS.txt Loading commit data...
LICENSE.txt Loading commit data...
MANIFEST.in Loading commit data...
Makefile Loading commit data...
README.rst Loading commit data...
buildout.cfg Loading commit data...
dev.py Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...