summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 317b22003..00303a45d 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)