Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 195653 Details for
Bug 275217
sys-apps/portage: implement backtracking for slot conflicts
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
splits depgraph.select_files into select_files and _resolve
depgraph-split-select_files.patch (text/plain), 1.73 KB, created by
Sebastian Luther (few)
on 2009-06-24 11:38:00 UTC
(
hide
)
Description:
splits depgraph.select_files into select_files and _resolve
Filename:
MIME Type:
Creator:
Sebastian Luther (few)
Created:
2009-06-24 11:38:00 UTC
Size:
1.73 KB
patch
obsolete
>Index: depgraph.py >=================================================================== >--- depgraph.py (revision 13680) >+++ depgraph.py (working copy) >@@ -174,6 +174,8 @@ > "--getbinpkgonly" in self.myopts) > del trees > >+ #contains the args created by select_files >+ self._initial_arg_list = [] > self.digraph=portage.digraph() > # contains all sets added to the graph > self._sets = {} >@@ -1065,7 +1067,8 @@ > yield arg, atom > > def select_files(self, myfiles): >- """Given a list of .tbz2s, .ebuilds sets, and deps, create the >+ """Given a list of .tbz2s, .ebuilds sets, and deps, populate >+ self._initial_arg_list and call self._resolve to create the > appropriate depgraph and return a favorite list.""" > debug = "--debug" in self.myopts > root_config = self.roots[self.target_root] >@@ -1323,14 +1326,25 @@ > myfavorites.add(arg.arg) > myfavorites = list(myfavorites) > >- pprovideddict = pkgsettings.pprovideddict > if debug: > portage.writemsg("\n", noiselevel=-1) > # Order needs to be preserved since a feature of --nodeps > # is to allow the user to force a specific merge order. > args.reverse() >- while args: >- arg = args.pop() >+ self._initial_arg_list = args[:] >+ >+ return self._resolve(myfavorites) >+ >+ def _resolve(self, myfavorites): >+ """Given self._initial_arg_list, pull in the root nodes, >+ call self._creategraph to process theier deps and return >+ a favorite list.""" >+ debug = "--debug" in self.myopts >+ onlydeps = "--onlydeps" in self.myopts >+ myroot = self.target_root >+ pkgsettings = self.pkgsettings[myroot] >+ pprovideddict = pkgsettings.pprovideddict >+ for arg in self._initial_arg_list: > for atom in arg.set: > self.spinner.update() > dep = Dependency(atom=atom, onlydeps=onlydeps,
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 275217
:
195594
|
195595
|
195597
| 195653 |
196212
|
196543