summaryrefslogtreecommitdiffstats
path: root/pym/portage_update.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-12 06:10:59 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-12 06:10:59 +0000
commit3241f5b53d022a9e1bbeb925a0100504ef76000f (patch)
tree9354bb50246039ae64303752d790faf05582b77f /pym/portage_update.py
parent4d2936f745b66e0a03ca707741ad2c75a4cd7e8b (diff)
downloadportage-3241f5b53d022a9e1bbeb925a0100504ef76000f.tar.gz
portage-3241f5b53d022a9e1bbeb925a0100504ef76000f.tar.bz2
portage-3241f5b53d022a9e1bbeb925a0100504ef76000f.zip
Prevent an InvalidData exception during global updates due to the new stricter catpkgsplit behavior.
svn path=/main/trunk/; revision=5591
Diffstat (limited to 'pym/portage_update.py')
-rw-r--r--pym/portage_update.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pym/portage_update.py b/pym/portage_update.py
index f156c39bc..1a2a1d884 100644
--- a/pym/portage_update.py
+++ b/pym/portage_update.py
@@ -188,7 +188,13 @@ def update_config_files(config_root, protect, protect_mask, update_iter):
line = file_contents[x][mypos]
if line[0] == "#" or not line.strip():
continue
- key = dep_getkey(line.split()[0])
+ myatom = line.split()[0]
+ if myatom.startswith("-"):
+ # package.mask supports incrementals
+ myatom = myatom[1:]
+ if not isvalidatom(myatom):
+ continue
+ key = dep_getkey(myatom)
if key == old_value:
file_contents[x][mypos] = \
line.replace(old_value, new_value)