From 3d697f6303f381a507f37f8d63129151d745dc6c Mon Sep 17 00:00:00 2001 From: graham.gower@gmail.com Date: Tue, 05 Jul 2011 00:23:29 -0400 Subject: 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 . git-svn-id: http://opkg.googlecode.com/svn/trunk@624 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- 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); -- cgit v0.9.1