From e036fd274290ef342d2a704a0b04dc4798da76ac Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Wed, 17 May 2023 16:44:17 +0000 Subject: [PATCH] allow cycles silently --- unbundle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unbundle b/unbundle index c352d72..cb95e3d 100755 --- a/unbundle +++ b/unbundle @@ -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