From 9995bbd6f3316bab82e66c36522c381ab27792ab Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Apr 2009 07:21:45 +0000 Subject: [PATCH] When in --nodeps mode, make depgraph._serialize_tasks() preserve the package order given on the command line. Thanks to Markus Duft for reporting. (trunk r13377) svn path=/main/branches/2.1.6/; revision=13529 --- pym/_emerge/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 879579bb9..7023c338a 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -7023,6 +7023,13 @@ class depgraph(object): writemsg("\n", noiselevel=-1) scheduler_graph = self.digraph.copy() + + if '--nodeps' in self.myopts: + # Preserve the package order given on the command line. + return ([node for node in scheduler_graph \ + if isinstance(node, Package) \ + and node.operation == 'merge'], scheduler_graph) + mygraph=self.digraph.copy() # Prune "nomerge" root nodes if nothing depends on them, since # otherwise they slow down merge order calculation. Don't remove -- 2.26.2