summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-11-20 03:39:58 +0000
committerZac Medico <zmedico@gentoo.org>2006-11-20 03:39:58 +0000
commit000efcfeb765ba1767c3d8f317d9848bfe52641d (patch)
treeb676f48d3499aa4b86cf8ed6dcfdd9ad79781b15
parentcdcdb9acc67fafaf1438f67132382ec3bf368beb (diff)
downloadportage-000efcfeb765ba1767c3d8f317d9848bfe52641d.tar.gz
portage-000efcfeb765ba1767c3d8f317d9848bfe52641d.tar.bz2
portage-000efcfeb765ba1767c3d8f317d9848bfe52641d.zip
For depclean, just pass in None for mydbapi (instead of an empty fakedbapi instance) since that's now supported.
svn path=/main/trunk/; revision=5095
-rwxr-xr-xbin/emerge3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/emerge b/bin/emerge
index 3c4d859d4..24d8d00f5 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -3858,7 +3858,6 @@ def action_depclean(settings, trees, ldpath_mtimes,
syslist = getlist(settings, "system")
worldlist = getlist(settings, "world")
fakedb = portage.fakedbapi(settings=settings)
- emptydb = portage.fakedbapi(settings=settings)
myvarlist = vardb.cpv_all()
if not syslist:
@@ -3922,7 +3921,7 @@ def action_depclean(settings, trees, ldpath_mtimes,
mydeps.append((" ".join(myaux.values()), hard))
usedef = vardb.aux_get(pkg, ["USE"])[0].split()
for depstr, priority in mydeps:
- success, atoms = portage.dep_check(depstr, emptydb, settings,
+ success, atoms = portage.dep_check(depstr, None, settings,
myuse=usedef, trees=trees, myroot=settings["ROOT"])
if not success:
print "\n\n"