From 2b696d8b96d28277137305526e5217752509b033 Mon Sep 17 00:00:00 2001 From: graham.gower Date: Thu, 10 Jun 2010 03:30:28 -0400 Subject: Correctly update the obs_file_hash in offline root mode. git-svn-id: http://opkg.googlecode.com/svn/trunk@533 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/opkg_install.c') diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c index f67593d..4889ad8 100644 --- a/libopkg/opkg_install.c +++ b/libopkg/opkg_install.c @@ -174,7 +174,7 @@ update_file_ownership(pkg_t *new_pkg, pkg_t *old_pkg) iter = niter, niter = str_list_next(old_list, niter)) { char *old_file = (char *)iter->data; pkg_t *owner = file_hash_get_file_owner(old_file); - if (owner == old_pkg) { + if (!owner || (owner == old_pkg)) { /* obsolete */ hash_table_insert(&conf->obs_file_hash, old_file, old_pkg); } -- cgit v0.9.1