From e6b8d5189f50c36b972a6c57d74a3127bca4ce2d Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 2 Mar 2013 08:19:03 +1000 Subject: Do not resolve every local package filelist on remove Although technically correct, this results in my system taking ~30 seconds to resolve all filelists when removing a package that has a directory not owned by any package. The check for if any package own the empty directory is a rare enough occurance, and it will be even rarer when that directory has a directory symlink in its path, so just revert this at this stage. Signed-off-by: Allan McRae --- lib/libalpm/remove.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libalpm/remove.c') diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index 60ea8de6..0642e04a 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -484,7 +484,9 @@ static int unlink_file(alpm_handle_t *handle, alpm_pkg_t *oldpkg, continue; } filelist = alpm_pkg_get_files(local_pkg); - _alpm_filelist_resolve(handle, filelist); + /* This is too slow and only covers a rare case + Disable for now... */ + /* _alpm_filelist_resolve(handle, filelist); */ if(alpm_filelist_contains(filelist, fileobj->name)) { _alpm_log(handle, ALPM_LOG_DEBUG, "keeping directory %s (owned by %s)\n", file, local_pkg->name); -- cgit v1.2.3-24-g4f1b