summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarius Makovsky <traveltissues@protonmail.com>2019-11-21 12:02:21 +0000
committerDarius Makovsky <traveltissues@protonmail.com>2019-11-27 09:42:02 +0000
commit7a3866a3e22d0d8eef9141c42c270c07242dd9c1 (patch)
tree4c43c6ccb7927547dc1988b438467fcad78e5fa6
parent46458698dcbbb7947bed63a274ece0323cedbedc (diff)
downloadbuildstream-7a3866a3e22d0d8eef9141c42c270c07242dd9c1.tar.gz
element: always prepare sandboxes
-rw-r--r--src/buildstream/element.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index e40dc3c8c..ffce257bf 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -2397,23 +2397,12 @@ class Element(Plugin):
# Internal method for calling public abstract prepare() method.
#
def __prepare(self, sandbox):
- workspace = self._get_workspace()
-
+ # FIXME:
# We need to ensure that the prepare() method is only called
# once in workspaces, because the changes will persist across
# incremental builds - not desirable, for example, in the case
# of autotools' `./configure`.
- if not (workspace and workspace.prepared):
- self.prepare(sandbox)
-
- if workspace:
-
- def mark_workspace_prepared():
- workspace.prepared = True
-
- # Defer workspace.prepared setting until pending batch commands
- # have been executed.
- sandbox._callback(mark_workspace_prepared)
+ self.prepare(sandbox)
# __preflight():
#