From: Zac Medico Date: Mon, 20 Nov 2006 03:39:58 +0000 (-0000) Subject: For depclean, just pass in None for mydbapi (instead of an empty fakedbapi instance... X-Git-Tag: v2.1.2~442 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=000efcfeb765ba1767c3d8f317d9848bfe52641d;p=portage.git 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 --- 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"