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:
William Douglas
2025-04-10 14:58:36 -07:00
parent 1fe041a968
commit 93aad5d3d5
+1 -2
View File
@@ -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