summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-12 06:18:13 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-12 06:18:13 +0000
commit6dffe1fe9d65ff249c41bb782a691bddac84f887 (patch)
tree5b5a46713507ad9b54946f2e55dc1db287ff9f03 /pym
parentPrevent an InvalidData exception during global updates due to the new stricte... (diff)
downloadportage-multirepo-6dffe1fe9d65ff249c41bb782a691bddac84f887.tar.gz
portage-multirepo-6dffe1fe9d65ff249c41bb782a691bddac84f887.tar.bz2
portage-multirepo-6dffe1fe9d65ff249c41bb782a691bddac84f887.zip
Fix incremental virtuals code for the new stricter catpkgsplit behavior.
svn path=/main/trunk/; revision=5592
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 317b2200..00303a45 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1963,7 +1963,11 @@ class config:
continue
myvalues = virtuals_dict[k]
for x in myvalues:
- if not isvalidatom(x):
+ myatom = x
+ if x.startswith("-"):
+ # allow incrementals
+ myatom = x[1:]
+ if not isvalidatom(myatom):
writemsg("--- Invalid atom in %s: %s\n" % \
(virtuals_file, x), noiselevel=-1)
myvalues.remove(x)