Mercurial > piecrust2
comparison piecrust/processing/pipeline.py @ 753:9a92e2804562
bake: Add the list of deleted files to the bake/processing records.
| author | Ludovic Chabant <ludovic@chabant.com> |
|---|---|
| date | Sat, 25 Jun 2016 16:58:59 -0700 |
| parents | 61d606fbc313 |
| children |
comparison
equal
deleted
inserted
replaced
| 752:7dbddfed8129 | 753:9a92e2804562 |
|---|---|
| 164 | 164 |
| 165 # Handle deletions. | 165 # Handle deletions. |
| 166 if delete: | 166 if delete: |
| 167 for path, reason in record.getDeletions(): | 167 for path, reason in record.getDeletions(): |
| 168 logger.debug("Removing '%s': %s" % (path, reason)) | 168 logger.debug("Removing '%s': %s" % (path, reason)) |
| 169 record.current.deleted.append(path) | |
| 169 try: | 170 try: |
| 170 os.remove(path) | 171 os.remove(path) |
| 171 except FileNotFoundError: | 172 except FileNotFoundError: |
| 172 pass | 173 pass |
| 173 logger.info('[delete] %s' % path) | 174 logger.info('[delete] %s' % path) |
