Fix bug in _expand_new_virtuals() reported by Arfrever:
authorZac Medico <zmedico@gentoo.org>
Sat, 12 Sep 2009 21:24:44 +0000 (21:24 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 12 Sep 2009 21:24:44 +0000 (21:24 -0000)
TypeError: coercing to Unicode: need string or buffer, Atom found

svn path=/main/trunk/; revision=14237

pym/portage/__init__.py

index cb6cdb6fa7d9985c068f8ccad4028ddac4d85782..b3e44002a0c216cecf862b022c7a45303994568d 100644 (file)
@@ -7561,7 +7561,7 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/",
                        if repoman:
                                # TODO: Add PROVIDE check for repoman.
                                for y in mychoices:
-                                       a.append(portage.dep.Atom(x.replace(mykey, y, 1)))
+                                       a.append(portage.dep.Atom(x.replace(mykey, str(y.cp), 1)))
                        else:
                                for y in mychoices:
                                        new_atom = portage.dep.Atom(