From d4f0b2ab70e3731b942569c754f6ae7280132c13 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 21 Dec 2009 16:39:53 +0000 Subject: db: check the overlay files package name rather than the ovl file itself --- src/database.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database.c b/src/database.c index 3ea8976..1c6ae9e 100644 --- a/src/database.c +++ b/src/database.c @@ -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); -- cgit v1.2.3-70-g09d2