This is an automated email from the ASF dual-hosted git repository.

juergbi pushed a commit to branch jbilleter/digest-environment
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 766d9738ca03e3884f33ff7783cffc9f20c7d8b7
Author: Jürg Billeter <[email protected]>
AuthorDate: Fri Jul 18 15:16:06 2025 +0200

    element.py: Add `subsandbox()` method
---
 src/buildstream/element.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index c18b2c700..df469c139 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -828,6 +828,12 @@ class Element(Plugin):
 
         sandbox._clean_directory(build_root)
 
+    @contextmanager
+    def subsandbox(self, sandbox):
+        subsandbox = sandbox._create_subsandbox()
+        with self.__collect_overlaps(subsandbox):
+            yield subsandbox
+
     #############################################################
     #            Private Methods used in BuildStream            #
     #############################################################

Reply via email to