Skip to content
Permalink
Browse files
Use doit clean as required by doit 0.31
  • Loading branch information
ralsina committed Mar 13, 2018
1 parent 5a2d2f4 commit 1312b070cf571a829291a9e5c305d25ae41b4f49
Showing with 3 additions and 3 deletions.
  1. +2 −2 nikola/__main__.py
  2. +1 −1 requirements.txt
@@ -234,13 +234,13 @@ def __init__(self, *args, **kw):
class Clean(DoitClean):
"""Clean site, including the cache directory."""

def clean_tasks(self, tasks, dryrun):
def clean_tasks(self, tasks, dryrun, cleanforget):
"""Clean tasks."""
if not dryrun and config:
cache_folder = config.get('CACHE_FOLDER', 'cache')
if os.path.exists(cache_folder):
shutil.rmtree(cache_folder)
return super(Clean, self).clean_tasks(tasks, dryrun)
return super(Clean, self).clean_tasks(tasks, dryrun, cleanforget)


# Nikola has its own "auto" commands that uses livereload.
@@ -1,4 +1,4 @@
doit>=0.30.1
doit>=0.31
Pygments>=1.6
Pillow>=2.4.0
python-dateutil>=2.4.0

0 comments on commit 1312b07

Please sign in to comment.