summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-12-21 16:39:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-12-21 16:39:53 +0000
commitd4f0b2ab70e3731b942569c754f6ae7280132c13 (patch)
tree91a0b4f5871af3b82fbab5952beb09bb466d4f9f /src/database.c
parent884fabbf30837157b7f79f8b603f12dcc0730644 (diff)
downloadapk-tools-d4f0b2ab70e3731b942569c754f6ae7280132c13.tar.gz
apk-tools-d4f0b2ab70e3731b942569c754f6ae7280132c13.tar.bz2
apk-tools-d4f0b2ab70e3731b942569c754f6ae7280132c13.tar.xz
apk-tools-d4f0b2ab70e3731b942569c754f6ae7280132c13.zip
db: check the overlay files package name rather than the ovl file itself
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c2
1 files changed, 1 insertions, 1 deletions
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);