lib/dload: refactor deletion on failure
commit9f139550f815e2970b8929094e50acfd8b4cc2b7
authorDave Reisner <dreisner@archlinux.org>
Wed, 17 Aug 2011 23:45:57 +0000 (17 19:45 -0400)
committerDan McGee <dan@archlinux.org>
Thu, 18 Aug 2011 02:03:43 +0000 (17 21:03 -0500)
tree8d7225c6dc4c74d1d4bcc9824014f56eae2af909
parent2dbdfe078847dc1247db77580655b387f746ba28
lib/dload: refactor deletion on failure

This moves all the delete-on-fail logic to under cleanup label. This
also implies should_unlink when a payload is received that doesn't allow
resuming.

Fixes .db.sig.part files leftover in the sync dir.

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