StaticFileSet: fix for EAPI 5 sub-slot in SLOT
authorZac Medico <zmedico@gentoo.org>
Thu, 18 Oct 2012 03:02:26 +0000 (20:02 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 18 Oct 2012 03:02:26 +0000 (20:02 -0700)
pym/portage/_sets/files.py

index b891ea4f44a3b06dcc5f252418125a0aa61ca685..b839582dfbc2ac3442e7d09ef3a692a836ebc5a2 100644 (file)
@@ -86,8 +86,8 @@ class StaticFileSet(EditablePackageSet):
                                for a in data:
                                        matches = self.dbapi.match(a)
                                        for cpv in matches:
-                                               atoms.append("%s:%s" % (cpv_getkey(cpv),
-                                                       self.dbapi.aux_get(cpv, ["SLOT"])[0]))
+                                               pkg = self.dbapi._pkg_str(cpv, None)
+                                               atoms.append("%s:%s" % (pkg.cp, pkg.slot))
                                        # In addition to any installed slots, also try to pull
                                        # in the latest new slot that may be available.
                                        atoms.append(a)