Lines 568-586
Link Here
|
568 |
|
568 |
|
569 |
if operator is None: |
569 |
if operator is None: |
570 |
for x in candidate_list: |
570 |
for x in candidate_list: |
571 |
xs = pkgsplit(x) |
571 |
if dep_getkey(x) != mycpv: |
572 |
if xs is None: |
|
|
573 |
xcpv = dep_getcpv(x) |
574 |
if slot is not None: |
575 |
xslot = dep_getslot(x) |
576 |
if xslot is not None and xslot != slot: |
577 |
""" This function isn't given enough information to |
578 |
reject atoms based on slot unless *both* compared atoms |
579 |
specify slots.""" |
580 |
continue |
581 |
if xcpv != mycpv: |
582 |
continue |
583 |
elif xs[0] != mycpv: |
584 |
continue |
572 |
continue |
585 |
mylist.append(x) |
573 |
mylist.append(x) |
586 |
|
574 |
|
Lines 643-647
Link Here
|
643 |
else: |
631 |
else: |
644 |
raise KeyError("Unknown operator: %s" % mydep) |
632 |
raise KeyError("Unknown operator: %s" % mydep) |
645 |
|
633 |
|
|
|
634 |
if slot is not None: |
635 |
candidate_list = mylist |
636 |
mylist = [] |
637 |
for x in candidate_list: |
638 |
xslot = dep_getslot(x) |
639 |
if xslot is not None and xslot != slot: |
640 |
continue |
641 |
mylist.append(x) |
642 |
|
646 |
_match_from_list_cache[cache_key] = mylist |
643 |
_match_from_list_cache[cache_key] = mylist |
647 |
return mylist |
644 |
return mylist |