Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r10155 - main/trunk/pym/_emerge
Date: Sun, 04 May 2008 03:24:31
Message-Id: E1JsUpw-0006qx-DS@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-05-04 03:24:27 +0000 (Sun, 04 May 2008)
3 New Revision: 10155
4
5 Modified:
6 main/trunk/pym/_emerge/__init__.py
7 Log:
8 Fix some unwanted interaction between --tree display and unsatisfied
9 blockers in depgraph.display().
10
11
12 Modified: main/trunk/pym/_emerge/__init__.py
13 ===================================================================
14 --- main/trunk/pym/_emerge/__init__.py 2008-05-04 02:10:55 UTC (rev 10154)
15 +++ main/trunk/pym/_emerge/__init__.py 2008-05-04 03:24:27 UTC (rev 10155)
16 @@ -4045,10 +4045,14 @@
17 if parent != inst_pkg:
18 mygraph.add(blocker, parent)
19
20 + unsatisfied_blockers = []
21 i = 0
22 depth = 0
23 shown_edges = set()
24 for x in mylist:
25 + if isinstance(x, Blocker) and not x.satisfied:
26 + unsatisfied_blockers.append(x)
27 + continue
28 graph_key = x
29 if "--tree" in self.myopts:
30 depth = len(tree_nodes)
31 @@ -4107,6 +4111,8 @@
32 else:
33 display_list.append((x, depth, True))
34 mylist = display_list
35 + for x in unsatisfied_blockers:
36 + mylist.append((x, 0, True))
37
38 last_merge_depth = 0
39 for i in xrange(len(mylist)-1,-1,-1):
40
41 --
42 gentoo-commits@l.g.o mailing list