vericast / conda-mirror

Mirror upstream conda channels
BSD 3-Clause "New" or "Revised" License
71 stars 59 forks source link

conda_mirror.py: log download errors instead of breaking and clearing… #71

Closed magnuhho closed 5 years ago

magnuhho commented 6 years ago

By default conda-mirror will continue pulling files until it either succeeds or dies from some sort of error. If an error is encountered, all downloaded files residing in "temp space" will be deleted.

This change logs exceptions that occur during download so that the files that actually download successfully will be verified and moved to the target folder.

codecov-io commented 5 years ago

Codecov Report

Merging #71 into master will decrease coverage by 2.99%. The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #71   +/-   ##
=======================================
- Coverage   96.88%   93.89%   -3%     
=======================================
  Files           2        2           
  Lines         257      262    +5     
=======================================
- Hits          249      246    -3     
- Misses          8       16    +8
Impacted Files Coverage Δ
conda_mirror/conda_mirror.py 93.82% <100%> (-3.03%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7f92926...e3c9a0d. Read the comment docs.