Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use doit clean as required by doit 0.31
  • Loading branch information
Roberto Alsina committed Mar 13, 2018
1 parent 5a2d2f4 commit 1312b07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nikola/__main__.py
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
@@ -1,4 +1,4 @@
doit>=0.30.1
doit>=0.31
Pygments>=1.6
Pillow>=2.4.0
python-dateutil>=2.4.0
Expand Down

0 comments on commit 1312b07

Please sign in to comment.