summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-05-31 09:24:01 +0000
committerZac Medico <zmedico@gentoo.org>2008-05-31 09:24:01 +0000
commitf7953f585a939ac810876fdc3c7c674d0f8357c3 (patch)
treebe37c7fec905fa0ce4e8df76a0470e333ae328a2 /pym
parent* Tweak isvalidatom() to treat "null" category as valid, but missing category (diff)
downloadportage-multirepo-f7953f585a939ac810876fdc3c7c674d0f8357c3.tar.gz
portage-multirepo-f7953f585a939ac810876fdc3c7c674d0f8357c3.tar.bz2
portage-multirepo-f7953f585a939ac810876fdc3c7c674d0f8357c3.zip
Fix TypeError: 'tuple' object does not support item assignment
svn path=/main/trunk/; revision=10518
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dep.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage/dep.py b/pym/portage/dep.py
index b3c763f4..df6bdfd3 100644
--- a/pym/portage/dep.py
+++ b/pym/portage/dep.py
@@ -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)