Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/dload.h
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-08-18 14:17:30 -0400
committerDan McGee <dan@archlinux.org>2011-08-19 09:43:19 -0500
commit24824b54ce6ce3f62417be493d1e29eeb2cc8f53 (patch)
tree78741e41a4a54a786b4d4e9769160647613f6e9d /lib/libalpm/dload.h
parent2ca27ab3a14c106a7153dda337a61c79db7a6de0 (diff)
dload: add 'unlink_on_fail' to payload struct
Let callers of _alpm_download state whether we should delete on fail, rather than inferring it from context. We still override this decision and always unlink when a temp file is used. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/dload.h')
-rw-r--r--lib/libalpm/dload.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/dload.h b/lib/libalpm/dload.h
index 341a4a1a..0c5fcb25 100644
--- a/lib/libalpm/dload.h
+++ b/lib/libalpm/dload.h
@@ -35,6 +35,7 @@ struct dload_payload {
int force;
int allow_resume;
int errors_ok;
+ int unlink_on_fail;
};
void _alpm_dload_payload_free(struct dload_payload *payload);