From: Zac Medico Date: Sat, 12 Sep 2009 21:24:44 +0000 (-0000) Subject: Fix bug in _expand_new_virtuals() reported by Arfrever: X-Git-Tag: v2.2_rc41~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4dd359e876b6bcac2bddcb5eb2c508ca2fb67f66;p=portage.git Fix bug in _expand_new_virtuals() reported by Arfrever: TypeError: coercing to Unicode: need string or buffer, Atom found svn path=/main/trunk/; revision=14237 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index cb6cdb6fa..b3e44002a 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -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(