diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-03 23:37:09 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-03 23:37:09 +0100 |
commit | 7922a0be682482893a971a1172cf61875854c3a1 (patch) | |
tree | 13260b485453ac9ac44a6d6387a77ae13311a25f /portato/backend | |
parent | f48160b6884735240a451a1d2a6a806162ffbae6 (diff) | |
download | portato-7922a0be682482893a971a1172cf61875854c3a1.tar.gz portato-7922a0be682482893a971a1172cf61875854c3a1.tar.bz2 portato-7922a0be682482893a971a1172cf61875854c3a1.zip |
Fix at least the KeyError of bug #15
Diffstat (limited to '')
-rw-r--r-- | portato/backend/flags.py | 2 |
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)): |