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

db: accept files in overlay without directory

appears this is possible, so support it.
parent f2a7800b
......@@ -535,12 +535,9 @@ int apk_db_read_overlay(struct apk_database *db, struct apk_bstream *bs)
} else {
diri = find_diri(ipkg, bdir, diri, &file_diri_node);
if (diri == NULL) {
apk_error("overlay: File '%*s' entry without "
"directory entry.\n",
line.len, line.ptr);
return -1;
diri = apk_db_diri_new(db, pkg, bdir, &diri_node);
file_diri_node = &diri->owned_files.first;
file = apk_db_file_get(db, diri, bfile, &file_diri_node);
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