Commit d4f0b2ab authored by Natanael Copa's avatar Natanael Copa
Browse files

db: check the overlay files package name rather than the ovl file itself

parent 884fabbf
......@@ -1923,7 +1923,7 @@ static void apk_db_migrate_files(struct apk_database *db,
cstype |= APK_FI_NOFOLLOW;
r = apk_file_get_info(db->root_fd, name, cstype, &fi);
if (ofile->name == NULL) {
if (ofile && ofile->diri->pkg->name == NULL) {
/* File was from overlay, delete the
* packages version */
unlinkat(db->root_fd, tmpname, 0);
Supports Markdown
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