summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-11-11 11:41:29 +0200
committerTimo Teräs <timo.teras@iki.fi>2021-11-11 11:41:29 +0200
commit3e6261392f990b541effe94b2515456e977bc79b (patch)
treef333aa9db8990ba3c0409f2eac2a9f88fea6893b /src
parent97e3647e1d1684724d75daeda56e1fcb42fa2e7e (diff)
downloadapk-tools-3e6261392f990b541effe94b2515456e977bc79b.tar.gz
apk-tools-3e6261392f990b541effe94b2515456e977bc79b.tar.bz2
apk-tools-3e6261392f990b541effe94b2515456e977bc79b.tar.xz
apk-tools-3e6261392f990b541effe94b2515456e977bc79b.zip
pkg: fix reading of v3 package meta data
The adb object for apk_pkg_from_adb() was changed in commit 7d6de220 "database: support loading v3 indexes" which also addressed the broken site in question but omitted updating the argument. fixes #10783
Diffstat (limited to 'src')
-rw-r--r--src/package.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/package.c b/src/package.c
index 3c04290..0b80b06 100644
--- a/src/package.c
+++ b/src/package.c
@@ -671,7 +671,7 @@ static int apk_pkg_v3meta(struct apk_extract_ctx *ectx, struct adb_obj *pkg)
if (!ri->v3ok) return -APKE_FORMAT_NOT_SUPPORTED;
adb_ro_obj(pkg, ADBI_PKG_PKGINFO, &pkginfo);
- apk_pkg_from_adb(ri->db, ri->pkg, pkg);
+ apk_pkg_from_adb(ri->db, ri->pkg, &pkginfo);
return -ECANCELED;
}