summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 2f146a019..13646b2fb 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1691,6 +1691,8 @@ class config:
writemsg(red("USE flags should not start with a '+': %s\n" % x),
noiselevel=-1)
x=x[1:]
+ if not x:
+ continue
if (x[0]=="-"):
if (x[1:] in myflags):
@@ -1758,6 +1760,8 @@ class config:
writemsg(colorize("BAD", "USE flags should not start " + \
"with a '+': %s\n" % x), noiselevel=-1)
x = x[1:]
+ if not x:
+ continue
if x[0] == "-":
try: