summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2019-12-18 12:58:32 +0200
committerTimo Teräs <timo.teras@iki.fi>2020-02-14 16:45:13 +0200
commit72be8139303d55463e470ee608a27eb4af950aff (patch)
tree1c71000e79b609fc8da3e537c08818489d5732e6 /src/database.c
parentd60477751f374a2d58dc73f64dca4ff95ea39a00 (diff)
downloadapk-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.c2
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);