mirror of
https://github.com/clearlinux/unbundle.git
synced 2026-06-16 02:35:48 +00:00
Update unbundle to handle cycles
mixer-tools is now able to handle cycles so remove the requirement for no cycles. Signed-off-by: William Douglas <william.douglas@intel.com>
This commit is contained in:
@@ -34,8 +34,7 @@ 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
|
||||
return True
|
||||
success = resolve_includes(inc_bundle, bundle_path, content, bundles, path)
|
||||
if not success:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user