Commit cfbe409d authored by Jürg Billeter's avatar Jürg Billeter
Browse files

Merge branch 'gokcennurlu/dont_cache_if_stage_fails' into 'master'

Prevent caching when Element.stage() fails

Closes #791

See merge request !1012
parents 5f0571d1 e2074693
Loading
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1620,12 +1620,12 @@ class Element(Plugin):
                self.__dynamic_public = _yaml.node_copy(self.__public)

                # Call the abstract plugin methods
                try:

                # Step 1 - Configure
                self.__configure_sandbox(sandbox)
                # Step 2 - Stage
                self.stage(sandbox)

                try:
                    if self.__batch_prepare_assemble:
                        cm = sandbox.batch(self.__batch_prepare_assemble_flags,
                                           collect=self.__batch_prepare_assemble_collect)