diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-08-18 20:17:30 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-19 16:43:19 +0200 |
commit | 24824b54ce6ce3f62417be493d1e29eeb2cc8f53 (patch) | |
tree | 78741e41a4a54a786b4d4e9769160647613f6e9d /lib/libalpm/dload.h | |
parent | 2ca27ab3a14c106a7153dda337a61c79db7a6de0 (diff) | |
download | pacman-24824b54ce6ce3f62417be493d1e29eeb2cc8f53.tar.gz pacman-24824b54ce6ce3f62417be493d1e29eeb2cc8f53.tar.xz |
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.h | 1 |
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); |