From: graham.gower Date: Thu, 10 Jun 2010 07:30:28 +0000 (+0000) Subject: Correctly update the obs_file_hash in offline root mode. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2b696d8b96d28277137305526e5217752509b033;p=project%2Fopkg-lede.git 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 --- 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); }