Skip to content

Commit

Permalink
Merge branch '550-fix-paster-front-end-build'
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Mar 5, 2013
2 parents f338a20 + 33c37ed commit c4cf213
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckan/lib/cli.py
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit c4cf213

Please sign in to comment.