diff options
author | Timo Teräs <timo.teras@iki.fi> | 2021-09-03 13:44:48 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-09-03 13:44:48 +0300 |
commit | fd42c073bf77d37562851ae84cfce1a3a5feb818 (patch) | |
tree | 8345723e39a2fba07f7d20e520bd6530b883d0ed /src/app_manifest.c | |
parent | bd156836703e52166c282a0fea50a45498cfabdd (diff) | |
download | apk-tools-fd42c073bf77d37562851ae84cfce1a3a5feb818.tar.gz apk-tools-fd42c073bf77d37562851ae84cfce1a3a5feb818.tar.bz2 apk-tools-fd42c073bf77d37562851ae84cfce1a3a5feb818.tar.xz apk-tools-fd42c073bf77d37562851ae84cfce1a3a5feb818.zip |
extract: pass root object instead of database
Diffstat (limited to 'src/app_manifest.c')
-rw-r--r-- | src/app_manifest.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/app_manifest.c b/src/app_manifest.c index f048d28..5c2e085 100644 --- a/src/app_manifest.c +++ b/src/app_manifest.c @@ -87,19 +87,18 @@ static int process_pkg_file(struct apk_extract_ctx *ectx, const struct apk_file_ return 0; } -static int process_v3_meta(struct apk_extract_ctx *ectx, struct adb *db) +static int process_v3_meta(struct apk_extract_ctx *ectx, struct adb_obj *pkg) { struct manifest_file_ctx *mctx = container_of(ectx, struct manifest_file_ctx, ectx); struct apk_out *out = mctx->out; - struct adb_obj pkg, paths, path, files, file; + struct adb_obj paths, path, files, file; struct apk_digest digest; struct apk_pathbuilder pb; char buf[APK_DIGEST_MAX_LENGTH*2+1]; apk_blob_t hex; int i, j; - adb_r_rootobj(db, &pkg, &schema_package); - adb_ro_obj(&pkg, ADBI_PKG_PATHS, &paths); + adb_ro_obj(pkg, ADBI_PKG_PATHS, &paths); for (i = ADBI_FIRST; i <= adb_ra_num(&paths); i++) { adb_ro_obj(&paths, i, &path); |