summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2011-07-05 00:23:29 (EDT)
committer graham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2011-07-05 00:23:29 (EDT)
commit3d697f6303f381a507f37f8d63129151d745dc6c (patch)
tree3e844a87882a7ba96b80e78353cef3a06a10f2f4
parent865da4175fda5a028ccfbb428e49384697527f03 (diff)
Don't filter out directories when claiming ownership of a file.
Directories are now owned by a particular package, which ensures their deletion in the event that a package leaves an empty directory during package removal. From Roman Khimov <khimov@altell.ru>. git-svn-id: http://opkg.googlecode.com/svn/trunk@624 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--libopkg/pkg_hash.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libopkg/pkg_hash.c b/libopkg/pkg_hash.c
index e08840b..a99cf6b 100644
--- a/libopkg/pkg_hash.c
+++ b/libopkg/pkg_hash.c
@@ -717,10 +717,6 @@ void
file_hash_set_file_owner(const char *file_name, pkg_t *owning_pkg)
{
pkg_t *old_owning_pkg;
- int file_name_len = strlen(file_name);
-
- if (file_name[file_name_len -1] == '/')
- return;
file_name = strip_offline_root(file_name);