From 2d843f6e79484ec76a3f4b358fed7c4cf36a8d77 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 12 Mar 2025 13:55:47 -0700 Subject: [PATCH] feat: Add skip mechanism for existing tags.scm files in language download script --- scripts/tsl_pack_langs.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/tsl_pack_langs.py b/scripts/tsl_pack_langs.py index 87f8444e8..7ae9d5c1e 100755 --- a/scripts/tsl_pack_langs.py +++ b/scripts/tsl_pack_langs.py @@ -96,6 +96,12 @@ def main(): queries_dir = os.path.join(lang_dir, "queries") os.makedirs(queries_dir, exist_ok=True) output_file = os.path.join(queries_dir, "tags.scm") + + # Skip if file already exists + if os.path.exists(output_file): + print(f"Skipping {lang}: tags.scm already exists") + successes += 1 + continue # Try branches in this order: # 1. Branch specified in the config