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 <allan@archlinux.org>
This commit is contained in:
parent
8e2648bf02
commit
e6b8d5189f
|
@ -484,7 +484,9 @@ static int unlink_file(alpm_handle_t *handle, alpm_pkg_t *oldpkg,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
filelist = alpm_pkg_get_files(local_pkg);
|
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)) {
|
if(alpm_filelist_contains(filelist, fileobj->name)) {
|
||||||
_alpm_log(handle, ALPM_LOG_DEBUG,
|
_alpm_log(handle, ALPM_LOG_DEBUG,
|
||||||
"keeping directory %s (owned by %s)\n", file, local_pkg->name);
|
"keeping directory %s (owned by %s)\n", file, local_pkg->name);
|
||||||
|
|
Loading…
Reference in New Issue