From: bors Date: Fri, 2 Dec 2016 14:37:52 +0000 (+0000) Subject: Auto merge of #3348 - alexcrichton:fix-checksums, r=brson X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~11^2~98 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=71a6cc9c788adb83306161a1471fcbbdafe9e9a0;p=cargo.git Auto merge of #3348 - alexcrichton:fix-checksums, r=brson Fix retrying crate downloads for network errors Previously the `with_retry` loop was a little too tight where stale state about the sha256 and data was kept out of the loop. Instead we need to reinitialize these on each iteration of the loop to ensure that we correctly retry by forgetting the data we previously downloaded for an aborted download attempt. --- 71a6cc9c788adb83306161a1471fcbbdafe9e9a0