From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D3ACD138CCF for ; Wed, 13 May 2015 01:22:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1696CE07E0; Wed, 13 May 2015 01:22:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B90D8E07E0 for ; Wed, 13 May 2015 01:22:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8B5E1340D8A for ; Wed, 13 May 2015 01:22:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3C1D29D6 for ; Wed, 13 May 2015 01:22:17 +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: <1431480117.ddf341ef86c0939026818a231f79086f0ae2ecfe.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/actions.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: ddf341ef86c0939026818a231f79086f0ae2ecfe X-VCS-Branch: master Date: Wed, 13 May 2015 01:22:17 +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: de5c8a80-5434-4892-ab10-2642581d4ced X-Archives-Hash: f1da96392ec7424aad0c7c6ded7c9956 commit: ddf341ef86c0939026818a231f79086f0ae2ecfe Author: Zac Medico gentoo org> AuthorDate: Wed May 13 01:14:38 2015 +0000 Commit: Zac Medico gentoo org> CommitDate: Wed May 13 01:21:57 2015 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=ddf341ef Allow read-only PKGDIR if no ebuilds will be built (bug 549072) X-Gentoo-Bug: 549072 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=549072 Acked-by: Brian Dolbec gentoo.org> pym/_emerge/actions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index b667537..92d1f2e 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -444,9 +444,12 @@ def action_build(settings, trees, mtimedb, if need_write_bindb or need_write_vardb: eroots = set() + ebuild_eroots = set() for x in mydepgraph.altlist(): if isinstance(x, Package) and x.operation == "merge": eroots.add(x.root) + if x.type_name == "ebuild": + ebuild_eroots.add(x.root) for eroot in eroots: if need_write_vardb and \ @@ -457,7 +460,7 @@ def action_build(settings, trees, mtimedb, level=logging.ERROR, noiselevel=-1) return 1 - if need_write_bindb and \ + if need_write_bindb and eroot in ebuild_eroots and \ ("buildpkg" in trees[eroot]["root_config"]. settings.features or "buildsyspkg" in trees[eroot]["root_config"].