For depclean, just pass in None for mydbapi (instead of an empty fakedbapi instance...
authorZac Medico <zmedico@gentoo.org>
Mon, 20 Nov 2006 03:39:58 +0000 (03:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 20 Nov 2006 03:39:58 +0000 (03:39 -0000)
svn path=/main/trunk/; revision=5095

bin/emerge

index 3c4d859d4a9e6aea1963003b08a0f0b1fca70e2c..24d8d00f5c3d74f6625338450e7648722f6a7fe6 100755 (executable)
@@ -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"