From dd7f4a36826babf7114126788656da28a2b45f61 Mon Sep 17 00:00:00 2001 From: riscy Date: Sun, 11 Jun 2023 20:28:13 -0700 Subject: [PATCH] narrow check same-named files to elisp source files only --- melpazoid/melpazoid.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/melpazoid/melpazoid.py b/melpazoid/melpazoid.py index 1737021..75e010f 100644 --- a/melpazoid/melpazoid.py +++ b/melpazoid/melpazoid.py @@ -100,8 +100,9 @@ def check_containerized_build(recipe: str, elisp_dir: str) -> None: return files = [os.path.relpath(f, elisp_dir) for f in _files_in_recipe(recipe, elisp_dir)] - if len({os.path.basename(file_) for file_ in files}) != len(files): - _fail(f"Multiple files share the same basename: {', '.join(files)}") + elisp_files = [file_ for file_ in files if file_.endswith('.el')] + if len({os.path.basename(file_) for file_ in elisp_files}) != len(elisp_files): + _fail(f"Multiple elisp files share the same basename: {', '.join(files)}") return pkg_dir = os.path.join(_MELPAZOID_ROOT, 'pkg')