summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-11-26 13:46:26 -0800
committerZac Medico <zmedico@gentoo.org>2010-11-26 13:46:26 -0800
commitc9b918ed8827f359b2dbe5d2668c420cce76a4b2 (patch)
treeb777a4f57d68d13d184b5644fde9266d58bc2fb1
parent07057dd0c4e0a7ed1f719ec267a64094a241f5e0 (diff)
downloadportage-c9b918ed8827f359b2dbe5d2668c420cce76a4b2.tar.gz
portage-c9b918ed8827f359b2dbe5d2668c420cce76a4b2.tar.bz2
portage-c9b918ed8827f359b2dbe5d2668c420cce76a4b2.zip
stack_lists: optimize repo logic
-rw-r--r--pym/portage/util/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py
index e0908f0a3..e8b60fbfd 100644
--- a/pym/portage/util/__init__.py
+++ b/pym/portage/util/__init__.py
@@ -270,8 +270,9 @@ def stack_lists(lists, incremental=1, remember_source_file=False,
if ignore_repo and not "::" in token:
#Let -cat/pkg remove cat/pkg::repo.
to_be_removed = []
+ token_slice = token[1:]
for atom in new_list:
- if atom == token[1:] or atom.split("::")[0] == token[1:]:
+ if atom.without_repo == token_slice:
to_be_removed.append(atom)
if to_be_removed:
matched = True