Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:repoman commit in: pym/_emerge/
Date: Tue, 27 Jun 2017 20:06:12
Message-Id: 1496128865.0f9bc8659094fe6a100a64e51cc9d51e95c5d659.dolsen@gentoo
1 commit: 0f9bc8659094fe6a100a64e51cc9d51e95c5d659
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 28 10:03:34 2017 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Tue May 30 07:21:05 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=0f9bc865
7
8 depgraph: account for binpkg-multi-instance in unused warning (bug 619620)
9
10 With FEATURES=binpkg-multi-instance, it is normal to have some
11 unused binary packages, so don't warn if the selected package
12 is the latest version and the most recent build.
13
14 X-Gentoo-bug: 619620
15 X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=619620
16 Acked-by: Brian Dolbec <dolsen <AT> gentoo.org>
17
18 pym/_emerge/depgraph.py | 9 +++++++++
19 1 file changed, 9 insertions(+)
20
21 diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
22 index 726835dd4..2dc432431 100644
23 --- a/pym/_emerge/depgraph.py
24 +++ b/pym/_emerge/depgraph.py
25 @@ -876,6 +876,15 @@ class depgraph(object):
26 self._dynamic_config.ignored_binaries.pop(pkg)
27 break
28
29 + # NOTE: The Package.__ge__ implementation accounts for
30 + # differences in build_time, so the warning about "ignored"
31 + # packages will be triggered if both packages are the same
32 + # version and selected_pkg is not the most recent build.
33 + if (selected_pkg.type_name == "binary" and
34 + selected_pkg >= pkg):
35 + self._dynamic_config.ignored_binaries.pop(pkg)
36 + break
37 +
38 if selected_pkg.installed and \
39 selected_pkg.cpv == pkg.cpv and \
40 selected_pkg.build_time == pkg.build_time: