summaryrefslogtreecommitdiff
path: root/src/app_mkpkg.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-07-16 17:04:23 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-07-22 15:30:08 +0300
commit69bcdd23b94dab9e0ef67bd480e7f875b06dc71d (patch)
tree54c88f2de0967ad8503440ce668d2156a649d5f1 /src/app_mkpkg.c
parent7af34db6cfed5792b8acd4a4fd4da56de8381673 (diff)
downloadapk-tools-69bcdd23b94dab9e0ef67bd480e7f875b06dc71d.tar.gz
apk-tools-69bcdd23b94dab9e0ef67bd480e7f875b06dc71d.tar.bz2
apk-tools-69bcdd23b94dab9e0ef67bd480e7f875b06dc71d.tar.xz
apk-tools-69bcdd23b94dab9e0ef67bd480e7f875b06dc71d.zip
adbsign: support compressed adb files
Diffstat (limited to 'src/app_mkpkg.c')
-rw-r--r--src/app_mkpkg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app_mkpkg.c b/src/app_mkpkg.c
index 3191639..00f467c 100644
--- a/src/app_mkpkg.c
+++ b/src/app_mkpkg.c
@@ -264,7 +264,7 @@ static int mkpkg_main(void *pctx, struct apk_ctx *ac, struct apk_string_array *a
// construct package with ADB as header, and the file data in
// concatenated data blocks
- os = apk_ostream_gzip(apk_ostream_to_file(AT_FDCWD, ctx->output, 0644));
+ os = adb_compress(apk_ostream_to_file(AT_FDCWD, ctx->output, 0644), ADB_COMP_DEFLATE);
adb_c_adb(os, &ctx->db, trust);
int files_fd = openat(AT_FDCWD, ctx->files_dir, O_RDONLY);
for (i = ADBI_FIRST; i <= adb_ra_num(&ctx->paths); i++) {