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 26D4E138334 for ; Tue, 7 Aug 2018 18:36:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1AE61E07A9; Tue, 7 Aug 2018 18:36:24 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E5CBEE07A9 for ; Tue, 7 Aug 2018 18:36:23 +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 904BD335C7F for ; Tue, 7 Aug 2018 18:36:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 854AE386 for ; Tue, 7 Aug 2018 18:36:20 +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: <1533666869.eb81c8081ae53e862f9f0f82c6119f936ca896e7.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: lib/portage/ X-VCS-Repository: proj/portage X-VCS-Files: lib/portage/metadata.py X-VCS-Directories: lib/portage/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: eb81c8081ae53e862f9f0f82c6119f936ca896e7 X-VCS-Branch: master Date: Tue, 7 Aug 2018 18:36:20 +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: 2c5ea170-89a9-423e-a040-d091ad4e805e X-Archives-Hash: 69e58dd41042959e62f10fe97ea01de9 commit: eb81c8081ae53e862f9f0f82c6119f936ca896e7 Author: Zac Medico gentoo org> AuthorDate: Tue Aug 7 18:29:51 2018 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Aug 7 18:34:29 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=eb81c808 action_metadata: refresh eclass cache (bug 663022) After sync, the eclass cache can contain stale data, therefore use the update_eclasses method to refresh it. Bug: https://bugs.gentoo.org/663022 lib/portage/metadata.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/portage/metadata.py b/lib/portage/metadata.py index 1abec5a89..ffb7672d3 100644 --- a/lib/portage/metadata.py +++ b/lib/portage/metadata.py @@ -50,8 +50,10 @@ def action_metadata(settings, portdb, myopts, porttrees=None): src_db = portdb._create_pregen_cache(path) if src_db is not None: - porttrees_data.append(TreeData(portdb.auxdb[path], - portdb.repositories.get_repo_for_location(path).eclass_db, path, src_db)) + eclass_db = portdb.repositories.get_repo_for_location(path).eclass_db + # Update eclass data which may be stale after sync. + eclass_db.update_eclasses() + porttrees_data.append(TreeData(portdb.auxdb[path], eclass_db, path, src_db)) porttrees = [tree_data.path for tree_data in porttrees_data]