Mercurial > piecrust2
comparison piecrust/commands/builtin/baking.py @ 45:efd0d3bacc9e
Don't recursively clean the cache.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 21 Aug 2014 23:09:31 -0700 |
parents | f14889d6b067 |
children | 0dd43c5f5484 |
comparison
equal
deleted
inserted
replaced
44:a62452ab5080 | 45:efd0d3bacc9e |
---|---|
64 "(defaults to `_counter`)", | 64 "(defaults to `_counter`)", |
65 nargs='?') | 65 nargs='?') |
66 | 66 |
67 def run(self, ctx): | 67 def run(self, ctx): |
68 out_dir = ctx.args.output or os.path.join(ctx.app.root_dir, '_counter') | 68 out_dir = ctx.args.output or os.path.join(ctx.app.root_dir, '_counter') |
69 record_cache = ctx.app.cache.getCache('bake_r') | 69 record_cache = ctx.app.cache.getCache('baker') |
70 record_name = hashlib.md5(out_dir.encode('utf8')).hexdigest() + '.record' | 70 record_name = hashlib.md5(out_dir.encode('utf8')).hexdigest() + '.record' |
71 if not record_cache.has(record_name): | 71 if not record_cache.has(record_name): |
72 raise Exception("No record has been created for this output path. " | 72 raise Exception("No record has been created for this output path. " |
73 "Did you bake there yet?") | 73 "Did you bake there yet?") |
74 | 74 |