Commit ead5bad7 by Timothée Peignier

avoid inserting path already present

parent 2bf3f4c9
...@@ -83,7 +83,7 @@ class Packager(object): ...@@ -83,7 +83,7 @@ class Packager(object):
for path in config[name]['source_filenames']: for path in config[name]['source_filenames']:
full_path = os.path.join(settings.COMPRESS_ROOT, path) full_path = os.path.join(settings.COMPRESS_ROOT, path)
paths.extend([os.path.normpath(path).replace(settings.COMPRESS_ROOT, '') paths.extend([os.path.normpath(path).replace(settings.COMPRESS_ROOT, '')
for path in glob.glob(full_path)]) for path in glob.glob(full_path) if not path in paths])
packages[name]['paths'] = paths packages[name]['paths'] = paths
packages[name]['output'] = config[name]['output_filename'] packages[name]['output'] = config[name]['output_filename']
packages[name]['context'] = {} packages[name]['context'] = {}
......
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