Commit b58ec46f authored by Timo Teräs's avatar Timo Teräs
Browse files

db: make fdb load package description before calling pkg_install

this is now mandatory after the overlay fixes. otherwise the
package will not get listed as installed.
parent d4f0b2ab
......@@ -581,13 +581,9 @@ int apk_db_index_read(struct apk_database *db, struct apk_bstream *bs, int repo)
/* If no package, create new */
if (pkg == NULL) {
pkg = apk_pkg_new();
ipkg = NULL;
diri = NULL;
file_diri_node = NULL;
if (repo == -1) {
ipkg = apk_pkg_install(db, pkg);
diri_node = hlist_tail_ptr(&ipkg->owned_dirs);
}
}
/* Standard index line? */
......@@ -598,6 +594,10 @@ int apk_db_index_read(struct apk_database *db, struct apk_bstream *bs, int repo)
apk_error("Invalid index entry '%c'", field);
return -1;
}
if (ipkg == NULL) {
ipkg = apk_pkg_install(db, pkg);
diri_node = hlist_tail_ptr(&ipkg->owned_dirs);
}
/* Check FDB special entries */
switch (field) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment