index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Martin Kühne <mysatyre@gmail.com> | 2016-10-17 16:40:37 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-12-05 15:20:08 +1000 |
commit | e83e868a77865d42a33076605f9a90a165f7c93a (patch) | |
tree | 0b3ccebe37ae4474b850397f243e31a6b546b722 /lib/libalpm/dload.c | |
parent | c3b954e7b93140aa85559fa350582160f3c0a72b (diff) |
-rw-r--r-- | lib/libalpm/dload.c | 10 |
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index ccd70d99..e8896098 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -722,4 +722,14 @@ void _alpm_dload_payload_reset(struct dload_payload *payload) memset(payload, '\0', sizeof(*payload)); } +void _alpm_dload_payload_reset_for_retry(struct dload_payload *payload) +{ + ASSERT(payload, return); + + FREE(payload->fileurl); + payload->initial_size += payload->prevprogress; + payload->prevprogress = 0; + payload->unlink_on_fail = 0; +} + /* vim: set noet: */ |