Fix TypeError: 'tuple' object does not support item assignment
authorZac Medico <zmedico@gentoo.org>
Sat, 31 May 2008 09:24:01 +0000 (09:24 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 31 May 2008 09:24:01 +0000 (09:24 -0000)
svn path=/main/trunk/; revision=10518

pym/portage/dep.py

index b3c763f4a02391b72cbc6dede54497748dd87e04..df6bdfd3e2d39b9bd2f3963e7f0ad41216398362 100644 (file)
@@ -603,6 +603,7 @@ def isvalidatom(atom, allow_blockers=False):
                                # "null" category is valid, missing category is not.
                                mycpv_cps = catpkgsplit(cpv.replace("null/", "cat/", 1))
                                if mycpv_cps:
+                                       mycpv_cps = list(mycpv_cps)
                                        mycpv_cps[0] = "null"
                if not mycpv_cps:
                        mycpv_cps = catpkgsplit(cpv)