Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 102262 Details for
Bug 155559
depclean requires the highest available dep instead of what is installed
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
force depclean dep_check calls to preference installed packages
depclean.patch (text/plain), 1.12 KB, created by
Zac Medico
on 2006-11-18 05:32:43 UTC
(
hide
)
Description:
force depclean dep_check calls to preference installed packages
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2006-11-18 05:32:43 UTC
Size:
1.12 KB
patch
obsolete
>Index: bin/emerge >=================================================================== >--- bin/emerge (revision 5084) >+++ bin/emerge (revision 5085) >@@ -3887,6 +3887,19 @@ > unresolveable = {} > aux_keys = ["DEPEND", "RDEPEND", "PDEPEND"] > >+ fake_vardb = portage.fakedbapi(settings=settings) >+ fakedb_auxkeys = aux_keys[:] >+ fakedb_auxkeys.append("SLOT") >+ for cpv in myvarlist: >+ try: >+ # Prefer live ebuild metadata when available. >+ aux_vals = portdb.aux_get(cpv, fakedb_auxkeys) >+ except KeyError: >+ aux_vals = vardb.aux_get(cpv, fakedb_auxkeys) >+ fake_vardb.cpv_inject(cpv, metadata=dict(zip(fakedb_auxkeys, aux_vals))) >+ # HACK: Ensure that installed packages are preferenced by dep_check(). >+ trees[settings["ROOT"]]["porttree"].dbapi = fake_vardb >+ > while remaining_atoms: > atom, parent, priority = remaining_atoms.pop() > pkgs = vardb.match(atom) >@@ -3920,6 +3933,9 @@ > for atom in atoms: > remaining_atoms.append((atom, pkg, priority)) > >+ # Restore the portdb back to normal (see fake_vardb above). >+ trees[settings["ROOT"]]["porttree"].dbapi = portdb >+ > if "--quiet" not in myopts: > print "\b\b... done!\n" >
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 155559
: 102262