diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-12-06 22:42:20 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-12-06 22:42:20 +0000 |
commit | 354ecfe42fcede644cb6676bdfed34a28a540692 (patch) | |
tree | e192aad08f67b43f82952a81a901f7cbbbc96875 | |
parent | 120327f3008ea49affc4acb1e0d1eb1dd6949c56 (diff) | |
download | portage-354ecfe42fcede644cb6676bdfed34a28a540692.tar.gz portage-354ecfe42fcede644cb6676bdfed34a28a540692.tar.bz2 portage-354ecfe42fcede644cb6676bdfed34a28a540692.zip |
Use FakeVartree for vardb lock/cache during depclean.
svn path=/main/trunk/; revision=5191
-rwxr-xr-x | bin/emerge | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/emerge b/bin/emerge index cdc22fabe..a5fdad390 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3894,7 +3894,7 @@ def action_depclean(settings, trees, ldpath_mtimes, xterm_titles = "notitles" not in settings.features portdb = trees[settings["ROOT"]]["porttree"].dbapi - vartree = trees[settings["ROOT"]]["vartree"] + vartree = FakeVartree(trees[settings["ROOT"]]["vartree"]) vardb = vartree.dbapi syslist = getlist(settings, "system") worldlist = getlist(settings, "world") @@ -3995,7 +3995,8 @@ def action_depclean(settings, trees, ldpath_mtimes, cleanlist = [pkg for pkg in vardb.cpv_all() if not fakedb.cpv_exists(pkg)] if len(cleanlist): - unmerge(settings, myopts, vartree, "unmerge", cleanlist, ldpath_mtimes) + unmerge(settings, myopts, trees[settings["ROOT"]]["vartree"], + "unmerge", cleanlist, ldpath_mtimes) print "Packages installed: "+str(len(myvarlist)) print "Packages in world: "+str(len(worldlist)) |