From 33c37ed7c38d4d2ee7083088a7515d1464d0da88 Mon Sep 17 00:00:00 2001 From: tobes Date: Tue, 5 Mar 2013 15:05:28 +0000 Subject: [PATCH] [#550] Fix bad paster command --- ckan/lib/cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ckan/lib/cli.py b/ckan/lib/cli.py index 7d876b71329..1fc8de336df 100644 --- a/ckan/lib/cli.py +++ b/ckan/lib/cli.py @@ -1769,10 +1769,11 @@ def __init__(self, name): action='store_true', default=False, help='remove any minified files in the path') def command(self): + clean = getattr(self.options, 'clean', False) self._load_config() for base_path in self.args: if os.path.isfile(base_path): - if self.options.clean: + if clean: self.clear_minifyed(base_path) else: self.minify_file(base_path) @@ -1781,7 +1782,7 @@ def command(self): dirs[:] = [d for d in dirs if not d in self.exclude_dirs] for filename in files: path = os.path.join(root, filename) - if self.options.clean: + if clean: self.clear_minifyed(path) else: self.minify_file(path)