allow cycles silently

This commit is contained in:
Arjan van de Ven
2023-05-17 16:44:17 +00:00
parent 3feee6ed0f
commit e036fd2742
+3 -2
View File
@@ -31,8 +31,9 @@ def resolve_includes(bundle_name, bundle_path, content, bundles=False, path=set(
elif line.startswith("include("):
inc_bundle = line[line.find("(")+1:line.find(")")]
if inc_bundle in path:
print(f"Error cycle detected: {inc_bundle} is part of a loop in bundles {path}.")
return False
# print(f"Error cycle detected: {inc_bundle} is part of a loop in bundles {path}.")
# return False
continue
success = resolve_includes(inc_bundle, bundle_path, content, bundles, path)
if not success:
return False