Lines 3240-3245
class depgraph(object):
Link Here
|
3240 |
matches = vardb.match_pkgs(atom) |
3240 |
matches = vardb.match_pkgs(atom) |
3241 |
if not matches: |
3241 |
if not matches: |
3242 |
return None, None |
3242 |
return None, None |
|
|
3243 |
if len(matches) > 1: |
3244 |
unmasked = [pkg for pkg in matches if \ |
3245 |
self._pkg_visibility_check(pkg)] |
3246 |
if unmasked: |
3247 |
if len(unmasked) == 1: |
3248 |
matches = unmasked |
3249 |
else: |
3250 |
# Account for packages with masks (like KEYWORDS masks) |
3251 |
# that are usually ignored in visibility checks for |
3252 |
# installed packages, in order to handle cases like |
3253 |
# bug #350285. |
3254 |
unmasked = [pkg for pkg in matches if not pkg.masks] |
3255 |
if unmasked: |
3256 |
matches = unmasked |
3243 |
pkg = matches[-1] # highest match |
3257 |
pkg = matches[-1] # highest match |
3244 |
in_graph = self._dynamic_config._slot_pkg_map[root].get(pkg.slot_atom) |
3258 |
in_graph = self._dynamic_config._slot_pkg_map[root].get(pkg.slot_atom) |
3245 |
return pkg, in_graph |
3259 |
return pkg, in_graph |
3246 |
- |
|
|