* [gentoo-commits] portage r13685 - main/trunk/pym/_emerge
@ 2009-06-24 21:07 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-06-24 21:07 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2009-06-24 21:07:50 +0000 (Wed, 24 Jun 2009)
New Revision: 13685
Modified:
main/trunk/pym/_emerge/depgraph.py
Log:
Bug #275217 - Part 3 - Splits depgraph.select_files into select_files and
_resolve. Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this
patch.
Modified: main/trunk/pym/_emerge/depgraph.py
===================================================================
--- main/trunk/pym/_emerge/depgraph.py 2009-06-24 12:45:17 UTC (rev 13684)
+++ main/trunk/pym/_emerge/depgraph.py 2009-06-24 21:07:50 UTC (rev 13685)
@@ -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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-24 21:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-24 21:07 [gentoo-commits] portage r13685 - main/trunk/pym/_emerge Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox