diff --git a/ckan/lib/fanstatic_resources.py b/ckan/lib/fanstatic_resources.py index 8aefb6fe5b4..2f313390e2f 100644 --- a/ckan/lib/fanstatic_resources.py +++ b/ckan/lib/fanstatic_resources.py @@ -157,8 +157,12 @@ def create_resource(path, lib_name, count, inline=False): if resource not in depends: depends[resource] = [] for dep in depends[group]: - if dep not in depends[resource]: - depends[resource].append(dep) + if dep not in groups: + dep_resources = [dep] + else: + dep_resources = groups[dep] + diff = set(dep_resources).difference(depends[resource]) + depends[resource].extend(diff) # process each .js/.css file found resource_list = []