Make sure the SLOT comes from the vardb instead of the portdb (for multislot, etc...
authorZac Medico <zmedico@gentoo.org>
Sun, 10 Dec 2006 10:59:50 +0000 (10:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 10 Dec 2006 10:59:50 +0000 (10:59 -0000)
svn path=/main/trunk/; revision=5256

bin/emerge

index ed03d6cf3d312949ceca33ee2d286218fb5482ca..05b369578df0abd1a9983ed3c6b46bd2cf5dd3ec 100755 (executable)
@@ -3987,6 +3987,8 @@ def action_depclean(settings, trees, ldpath_mtimes,
                try:
                        # Prefer live ebuild metadata when available.
                        aux_vals = portdb.aux_get(cpv, fakedb_auxkeys)
+                       # SLOT always comes from the vardb, for multislot.
+                       aux_vals[-1] = vardb.aux_get(cpv, ["SLOT"])[0]
                        live_ebuild = True
                except KeyError:
                        aux_vals = vardb.aux_get(cpv, fakedb_auxkeys)