mirror of
https://github.com/clearlinux/unbundle.git
synced 2026-10-03 23:48:41 +00:00
allow cycles silently
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user