summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-10-26 10:13:16 -0700
committerZac Medico <zmedico@gentoo.org>2012-10-26 10:13:16 -0700
commit3fcf296fdda7fa3f7c36d4d4c3ab55156fcd70fa (patch)
treede40623a64177ac6cde4ced4a525576969ee748b
parent222dfa56e8fb311f4bea54012bdfd5d1a474d56c (diff)
downloadportage-3fcf296fdda7fa3f7c36d4d4c3ab55156fcd70fa.tar.gz
portage-3fcf296fdda7fa3f7c36d4d4c3ab55156fcd70fa.tar.bz2
portage-3fcf296fdda7fa3f7c36d4d4c3ab55156fcd70fa.zip
depgraph: use _match_slot in multislot match
This amkes sub-slot matching work correctly.
-rw-r--r--pym/_emerge/depgraph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index fd5dfe806..952d0618d 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -3853,8 +3853,8 @@ class depgraph(object):
for other_db, other_type, other_built, \
other_installed, other_keys in dbs:
try:
- if atom.slot == \
- other_db._pkg_str(_unicode(cpv), None).slot:
+ if portage.dep._match_slot(atom,
+ other_db._pkg_str(_unicode(cpv), None)):
slot_available = True
break
except (KeyError, InvalidData):