diff options
author | Timo Teräs <timo.teras@iki.fi> | 2019-12-18 12:58:32 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-02-14 16:45:13 +0200 |
commit | 72be8139303d55463e470ee608a27eb4af950aff (patch) | |
tree | 1c71000e79b609fc8da3e537c08818489d5732e6 /src/database.c | |
parent | d60477751f374a2d58dc73f64dca4ff95ea39a00 (diff) | |
download | apk-tools-72be8139303d55463e470ee608a27eb4af950aff.tar.gz apk-tools-72be8139303d55463e470ee608a27eb4af950aff.tar.bz2 apk-tools-72be8139303d55463e470ee608a27eb4af950aff.tar.xz apk-tools-72be8139303d55463e470ee608a27eb4af950aff.zip |
io: add stream copy helper
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c index f358ad1..2ca1286 100644 --- a/src/database.c +++ b/src/database.c @@ -663,7 +663,7 @@ int apk_cache_download(struct apk_database *db, struct apk_repository *repo, if (fd >= 0) { struct apk_file_meta meta; - r = apk_istream_splice(is, fd, APK_SPLICE_ALL, cb, cb_ctx); + r = apk_istream_splice(is, fd, APK_IO_ALL, cb, cb_ctx); if (!autoupdate) { apk_istream_get_meta(is, &meta); apk_file_meta_to_fd(fd, &meta); |