Mercurial > piecrust2
comparison piecrust/processing/pipeline.py @ 549:7453baeb0839
bake: Set the flags, don't combine.
We don't want to combine old flags with new ones, especially if something
went different between the last bake and the current one.
| author | Ludovic Chabant <ludovic@chabant.com> |
|---|---|
| date | Tue, 04 Aug 2015 21:21:08 -0700 |
| parents | d90ccdf18156 |
| children | 7dabfdd056a1 |
comparison
equal
deleted
inserted
replaced
| 548:785dea918ad8 | 549:7453baeb0839 |
|---|---|
| 120 | 120 |
| 121 # Work! | 121 # Work! |
| 122 def _handler(res): | 122 def _handler(res): |
| 123 entry = record.getCurrentEntry(res.path) | 123 entry = record.getCurrentEntry(res.path) |
| 124 assert entry is not None | 124 assert entry is not None |
| 125 entry.flags |= res.flags | 125 entry.flags = res.flags |
| 126 entry.proc_tree = res.proc_tree | 126 entry.proc_tree = res.proc_tree |
| 127 entry.rel_outputs = res.rel_outputs | 127 entry.rel_outputs = res.rel_outputs |
| 128 if entry.flags & FLAG_PROCESSED: | 128 if entry.flags & FLAG_PROCESSED: |
| 129 record.current.processed_count += 1 | 129 record.current.processed_count += 1 |
| 130 if res.errors: | 130 if res.errors: |
