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 f845b1cb54f692f0bec6239bf37a5329eb79c4eb
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 796c60613..4b087df88 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