1 |
commit: 6622bb5b63b49b1e528d89fee061e40b2d0d5afd |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 10 00:05:23 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 10 00:05:23 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=6622bb5b |
7 |
|
8 |
show_ignored_binaries: filter noise, bug #386379 |
9 |
|
10 |
--- |
11 |
pym/_emerge/depgraph.py | 26 ++++++++++++++++++++++++++ |
12 |
1 files changed, 26 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py |
15 |
index 66cba04..a409bed 100644 |
16 |
--- a/pym/_emerge/depgraph.py |
17 |
+++ b/pym/_emerge/depgraph.py |
18 |
@@ -556,6 +556,32 @@ class depgraph(object): |
19 |
"binpkg_respect_use") in ("y", "n"): |
20 |
return |
21 |
|
22 |
+ for pkg in list(self._dynamic_config.ignored_binaries): |
23 |
+ |
24 |
+ selected_pkg = self._dynamic_config.mydbapi[pkg.root |
25 |
+ ].match_pkgs(pkg.slot_atom) |
26 |
+ |
27 |
+ if not selected_pkg: |
28 |
+ continue |
29 |
+ |
30 |
+ selected_pkg = selected_pkg[-1] |
31 |
+ if selected_pkg > pkg: |
32 |
+ self._dynamic_config.ignored_binaries.pop(pkg) |
33 |
+ continue |
34 |
+ |
35 |
+ if selected_pkg.installed and \ |
36 |
+ selected_pkg.cpv == pkg.cpv and \ |
37 |
+ selected_pkg.metadata.get('BUILD_TIME') == \ |
38 |
+ pkg.metadata.get('BUILD_TIME'): |
39 |
+ # We don't care about ignored binaries when an |
40 |
+ # identical installed instance is selected to |
41 |
+ # fill the slot. |
42 |
+ self._dynamic_config.ignored_binaries.pop(pkg) |
43 |
+ continue |
44 |
+ |
45 |
+ if not self._dynamic_config.ignored_binaries: |
46 |
+ return |
47 |
+ |
48 |
self._show_merge_list() |
49 |
|
50 |
writemsg("\n!!! The following binary packages have been ignored " + \ |