# HG changeset patch # User Ludovic Chabant # Date 1514257287 28800 # Node ID d85de09f40c749ef8ef261eb52f7924f650705a6 # Parent c8366fc150432a32f644c1756877f9c7016e813d bake: Fix bug with postponed pages due to them using other sources. diff -r c8366fc15043 -r d85de09f40c7 piecrust/pipelines/page.py --- a/piecrust/pipelines/page.py Mon Dec 25 19:01:01 2017 -0800 +++ b/piecrust/pipelines/page.py Mon Dec 25 19:01:27 2017 -0800 @@ -185,8 +185,8 @@ else: # Update the entry with the new information. existing = ctx.record_entry - merge_job_result_into_record_entry(existing, result) - + if not result.get('postponed', False): + merge_job_result_into_record_entry(existing, result) if existing.was_any_sub_baked: ctx.record.user_data['dirty_source_names'].add(self.source.name) @@ -246,6 +246,7 @@ def _renderOrPostpone(self, job, ctx, result): # See if we should immediately kick this job off to the next step. if job.get('uses_sources', False): + result['postponed'] = True result['next_step_job'] = create_job(self, job['job_spec'][1]) return