Skip to content

Commit

Permalink
[#2950] Just minify all files, don't check timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Oct 2, 2012
1 parent bdf9069 commit f70481f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ckan/lib/cli.py
Expand Up @@ -1708,9 +1708,6 @@ def minify_file(self, path):
file, or it's some other type of file entirely) it will not be
minifed.
If the minified version of the file already exists and is newer than
the source file, the file will not be minified.
:param path: The path to the .js or .css file to minify
'''
Expand All @@ -1726,11 +1723,6 @@ def minify_file(self, path):

path_min = fanstatic_resources.min_path(path)

if os.path.exists(path_min) and (
os.path.getmtime(path) < os.path.getmtime(path_min)):
# Minified file exists and is newer than source file.
return

source = open(path, 'r').read()
if path.endswith('.css'):
f = open(path_min, 'w')
Expand Down

0 comments on commit f70481f

Please sign in to comment.