Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 182975 Details for
Bug 253904
avoid dependency choices that are not the highest visible within a slot
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
automatically mask lower versions that are likely to trigger slot conflicts
mask_lower_version.patch (text/plain), 1.31 KB, created by
Zac Medico
on 2009-02-24 00:14:43 UTC
(
hide
)
Description:
automatically mask lower versions that are likely to trigger slot conflicts
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2009-02-24 00:14:43 UTC
Size:
1.31 KB
patch
obsolete
>Index: pym/_emerge/__init__.py >=================================================================== >--- pym/_emerge/__init__.py (revision 12622) >+++ pym/_emerge/__init__.py (revision 12624) >@@ -5067,9 +5067,10 @@ > # dependencies so that things like --fetchonly can still > # function despite collisions. > pass >- else: >+ elif not previously_added: > self._slot_pkg_map[pkg.root][pkg.slot_atom] = pkg > self.mydbapi[pkg.root].cpv_inject(pkg) >+ self._filtered_trees[pkg.root]["porttree"].dbapi._clear_cache() > > if not pkg.installed: > # Allow this package to satisfy old-style virtuals in case it >@@ -8897,6 +8898,20 @@ > return False > except portage.exception.InvalidDependString: > pass >+ in_graph = self._depgraph._slot_pkg_map[ >+ self._root].get(pkg.slot_atom) >+ if in_graph is None: >+ # Mask choices for packages which are not the highest visible >+ # version within their slot (since they usually trigger slot >+ # conflicts). >+ highest_visible, in_graph = self._depgraph._select_package( >+ self._root, pkg.slot_atom) >+ if pkg != highest_visible: >+ return False >+ elif in_graph != pkg: >+ # Mask choices for packages that would trigger a slot >+ # conflict with a previously selected package. >+ return False > return True > > def _dep_expand(self, atom):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 253904
:
177505
| 182975