1 |
Author: zmedico |
2 |
Date: 2008-05-02 21:10:37 +0000 (Fri, 02 May 2008) |
3 |
New Revision: 10107 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.2/bin/emerge |
7 |
Log: |
8 |
In depgraph.validate_blockers(), discard any "uninstall" tasks scheduled |
9 |
by previous calls, since those tasks may not make sense given the current |
10 |
graph state. (trunk r10106) |
11 |
|
12 |
|
13 |
Modified: main/branches/2.1.2/bin/emerge |
14 |
=================================================================== |
15 |
--- main/branches/2.1.2/bin/emerge 2008-05-02 21:09:20 UTC (rev 10106) |
16 |
+++ main/branches/2.1.2/bin/emerge 2008-05-02 21:10:37 UTC (rev 10107) |
17 |
@@ -3372,6 +3372,14 @@ |
18 |
blocker_cache.flush() |
19 |
del blocker_cache |
20 |
|
21 |
+ # Discard any "uninstall" tasks scheduled by previous calls |
22 |
+ # to this method, since those tasks may not make sense given |
23 |
+ # the current graph state. |
24 |
+ previous_uninstall_tasks = self._blocker_uninstalls.leaf_nodes() |
25 |
+ if previous_uninstall_tasks: |
26 |
+ self._blocker_uninstalls = digraph() |
27 |
+ self.digraph.difference_update(previous_uninstall_tasks) |
28 |
+ |
29 |
for blocker in self._blocker_parents.leaf_nodes(): |
30 |
self.spinner.update() |
31 |
root_config = self.roots[blocker.root] |
32 |
|
33 |
-- |
34 |
gentoo-commits@l.g.o mailing list |