diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-12-21 16:31:58 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-12-21 16:31:58 +0200 |
commit | f44f34811dde4e33210e83af8584a99543d528a8 (patch) | |
tree | da95502415eedeb4c3297ecefcc60e116e2810b3 /src/database.c | |
parent | f2a7800b22c6ffb5321f286512c76f286131ac8d (diff) | |
download | aports-f44f34811dde4e33210e83af8584a99543d528a8.tar.bz2 aports-f44f34811dde4e33210e83af8584a99543d528a8.tar.xz |
db: accept files in overlay without directory
appears this is possible, so support it.
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/database.c b/src/database.c index dd64c34d36..fef25f89b6 100644 --- a/src/database.c +++ b/src/database.c @@ -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); } } |