summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/backend/flags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/portato/backend/flags.py b/portato/backend/flags.py
index 56df231..94f19af 100644
--- a/portato/backend/flags.py
+++ b/portato/backend/flags.py
@@ -262,7 +262,7 @@ def set_use_flag (pkg, flag):
if pkg.matches(crit):
# we have the inverted flag in the uselist/newuselist --> delete it
if invFlag in flags or (file, line, invFlag, False) in newUseFlags[cpv] or (file, line, flag, True) in newUseFlags[cpv]:
- if added: del newUseFlags[-1] # we currently added it as an extra option - delete it
+ if added: del newUseFlags[cpv][-1] # we currently added it as an extra option - delete it
added = True
jumpOut = False
for t in ((file, line, invFlag, False),(file, line, flag, True)):