Commit 6e3732fa by Timothée Peignier

Merge branch 'master' of git://github.com/sammthomson/django-compress

Signed-off-by: Timothée Peignier <timothee.peignier@tryphon.org>
parents f6e95330 770b8755
......@@ -115,7 +115,7 @@ def get_version(source_files, verbosity=0):
def get_version_from_file(path, filename):
regex = re.compile(r'^%s$' % (get_output_filename(settings.COMPRESS_VERSION_PLACEHOLDER.join([re.escape(part) for part in filename.split(settings.COMPRESS_VERSION_PLACEHOLDER)]), r'([A-Za-z0-9]+)')))
results = []
for f in os.listdir(path):
for f in sorted(os.listdir(path), reverse=True):
result = regex.match(f)
if result and result.groups():
results.append(result.groups()[0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment