lib/dload: avoid deleting .part file on too-slow xfer
commit6bf60568f8a956c980accdc6ae86c918eee5a881
authorDave Reisner <dreisner@archlinux.org>
Fri, 12 Aug 2011 19:03:45 +0000 (12 15:03 -0400)
committerDan McGee <dan@archlinux.org>
Mon, 15 Aug 2011 11:26:08 +0000 (15 06:26 -0500)
tree3c1aeb51229b177808ed55f3ff8d458258a8b1c3
parent83f076d3a81e5a625c07fdaf82a5e598a1c75c71
lib/dload: avoid deleting .part file on too-slow xfer

Take this opportunity to refactor the if/then/else logic into a
switch/case which is likely going to be needed to fine tune more
exceptions in the future.

Fixes FS#25531

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/dload.c