* [gentoo-portage-dev] [PATCH] Allow read-only PKGDIR if no ebuilds will be built (bug 549072)
@ 2015-05-13 1:15 Zac Medico
0 siblings, 0 replies; only message in thread
From: Zac Medico @ 2015-05-13 1:15 UTC (permalink / raw
To: gentoo-portage-dev; +Cc: Zac Medico
X-Gentoo-Bug: 549072
X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=549072
---
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"].
--
2.3.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-13 1:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-13 1:15 [gentoo-portage-dev] [PATCH] Allow read-only PKGDIR if no ebuilds will be built (bug 549072) Zac Medico
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox