Mercurial > piecrust2
comparison piecrust/baking/baker.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 | 234d0c7c02cf |
children | 4850f8c21b6e |
comparison
equal
deleted
inserted
replaced
752:7dbddfed8129 | 753:9a92e2804562 |
---|---|
377 | 377 |
378 def _handleDeletetions(self, record): | 378 def _handleDeletetions(self, record): |
379 logger.debug("Handling deletions...") | 379 logger.debug("Handling deletions...") |
380 for path, reason in record.getDeletions(): | 380 for path, reason in record.getDeletions(): |
381 logger.debug("Removing '%s': %s" % (path, reason)) | 381 logger.debug("Removing '%s': %s" % (path, reason)) |
382 record.current.deleted.append(path) | |
382 try: | 383 try: |
383 os.remove(path) | 384 os.remove(path) |
384 logger.info('[delete] %s' % path) | 385 logger.info('[delete] %s' % path) |
385 except OSError: | 386 except OSError: |
386 # Not a big deal if that file had already been removed | 387 # Not a big deal if that file had already been removed |