Gentoo Archives: gentoo-portage-dev

From: Brian Dolbec <dolsen@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] depgraph: account for binpkg-multi-instance in unused warning (bug 619620)
Date: Mon, 29 May 2017 22:03:33
Message-Id: 20170529150324.4d8def5d.dolsen@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] depgraph: account for binpkg-multi-instance in unused warning (bug 619620) by Zac Medico
1 On Sun, 28 May 2017 03:07:50 -0700
2 Zac Medico <zmedico@g.o> wrote:
3
4 > With FEATURES=binpkg-multi-instance, it is normal to have some
5 > unused binary packages, so don't warn if the selected package
6 > is the latest version and the most recent build.
7 >
8 ^^^
9 is or isn't the latest version?
10
11
12 > X-Gentoo-bug: 619620
13 > X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=619620
14 > ---
15 > pym/_emerge/depgraph.py | 9 +++++++++
16 > 1 file changed, 9 insertions(+)
17 >
18 > diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
19 > index 726835dd4..2dc432431 100644
20 > --- a/pym/_emerge/depgraph.py
21 > +++ b/pym/_emerge/depgraph.py
22 > @@ -876,6 +876,15 @@ class depgraph(object):
23 > self._dynamic_config.ignored_binaries.pop(pkg)
24 > break
25 >
26 > + # NOTE: The Package.__ge__
27 > implementation accounts for
28 > + # differences in build_time, so the
29 > warning about "ignored"
30 > + # packages will be triggered if both
31 > packages are the same
32 > + # version and selected_pkg is not
33 > the most recent build.
34 > + if (selected_pkg.type_name ==
35 > "binary" and
36 > + selected_pkg >= pkg):
37 > +
38 > self._dynamic_config.ignored_binaries.pop(pkg)
39 > + break
40 > +
41 > if selected_pkg.installed and \
42 > selected_pkg.cpv == pkg.cpv
43 > and \ selected_pkg.build_time == pkg.build_time:
44
45
46
47 --
48 Brian Dolbec <dolsen>

Replies