From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DFCD7139694 for ; Tue, 30 May 2017 07:22:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1A4C421C06C; Tue, 30 May 2017 07:22:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EE7C021C06C for ; Tue, 30 May 2017 07:22:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 23DCB341734 for ; Tue, 30 May 2017 07:22:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E14FD7466 for ; Tue, 30 May 2017 07:22:14 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1496128865.0f9bc8659094fe6a100a64e51cc9d51e95c5d659.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/depgraph.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 0f9bc8659094fe6a100a64e51cc9d51e95c5d659 X-VCS-Branch: master Date: Tue, 30 May 2017 07:22:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6bd8fe56-0f04-49da-943a-3bfafbaf70e5 X-Archives-Hash: 7e814caa465cd32adc7dd23ef25e752a commit: 0f9bc8659094fe6a100a64e51cc9d51e95c5d659 Author: Zac Medico gentoo org> AuthorDate: Sun May 28 10:03:34 2017 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue May 30 07:21:05 2017 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=0f9bc865 depgraph: account for binpkg-multi-instance in unused warning (bug 619620) With FEATURES=binpkg-multi-instance, it is normal to have some unused binary packages, so don't warn if the selected package is the latest version and the most recent build. X-Gentoo-bug: 619620 X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=619620 Acked-by: Brian Dolbec gentoo.org> pym/_emerge/depgraph.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 726835dd4..2dc432431 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -876,6 +876,15 @@ class depgraph(object): self._dynamic_config.ignored_binaries.pop(pkg) break + # NOTE: The Package.__ge__ implementation accounts for + # differences in build_time, so the warning about "ignored" + # packages will be triggered if both packages are the same + # version and selected_pkg is not the most recent build. + if (selected_pkg.type_name == "binary" and + selected_pkg >= pkg): + self._dynamic_config.ignored_binaries.pop(pkg) + break + if selected_pkg.installed and \ selected_pkg.cpv == pkg.cpv and \ selected_pkg.build_time == pkg.build_time: