Use fake_vardb for cached aux_get calls.
authorZac Medico <zmedico@gentoo.org>
Sat, 18 Nov 2006 13:39:18 +0000 (13:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 18 Nov 2006 13:39:18 +0000 (13:39 -0000)
svn path=/main/trunk/; revision=5086

bin/emerge

index ae2c7a06ebb7ded2acc860b2d4b094a48607f82f..6417ff9710371100b5cd184431565c38867cf1f9 100755 (executable)
@@ -3914,8 +3914,7 @@ def action_depclean(settings, trees, ldpath_mtimes,
                                continue
                        spinner.update()
                        fakedb.cpv_inject(pkg)
-                       mydb = portdb.xmatch("match-visible", "="+pkg) and portdb or vardb
-                       myaux = dict(zip(aux_keys, mydb.aux_get(pkg, aux_keys)))
+                       myaux = dict(zip(aux_keys, fake_vardb.aux_get(pkg, aux_keys)))
                        mydeps = []
                        if myopts.get("--with-bdeps", "y") == "y":
                                mydeps.append((myaux["DEPEND"], soft))