From: David Kalnischkies Date: Wed, 2 Oct 2013 23:12:18 +0000 (+0200) Subject: refactor onError relabeling of DestFile as '.FAILED' X-Git-Tag: 0.9.12~15^2~6 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/3c8030a4977536e9d3a1954adc68082ae1c6d5a2?hp=3c8030a4977536e9d3a1954adc68082ae1c6d5a2 refactor onError relabeling of DestFile as '.FAILED' This helps ensure three things: - each error is reported via ReportMirrorFailure - if DestFile doesn't exist, do not attempt rename - renames happen for every error The last one wasn't the case for Size mismatches, which isn't nice, but not a exploitable problem per-se as the file isn't picked up and remains in partial/ where the following download-try will at most take it for a partial request which fails the hashsum verification later on Git-Dch: Ignore ---