diff --git a/CHANGES.md b/CHANGES.md index da4ac06..ab34de9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,7 +3,8 @@ ## 4.0.3 (unreleased) -- Nothing changed yet. +- Fix #45: Packages with capital names do not get ignored when checked out. + [jensens] ## 4.0.2 (2024-03-13) diff --git a/src/mxdev/processing.py b/src/mxdev/processing.py index ce4def6..280e8b4 100644 --- a/src/mxdev/processing.py +++ b/src/mxdev/processing.py @@ -54,11 +54,12 @@ def process_line( except Exception: pass else: - if parsed.name in package_keys: + parsed_name_lower = parsed.name.lower() + if parsed_name_lower in [k.lower() for k in package_keys]: line = f"# {line.strip()} -> mxdev disabled (source)\n" - if variety == "c" and parsed.name in override_keys: + if variety == "c" and parsed_name_lower in [k.lower() for k in override_keys]: line = f"# {line.strip()} -> mxdev disabled (override)\n" - if variety == "c" and parsed.name in ignore_keys: + if variety == "c" and parsed_name_lower in [k.lower() for k in ignore_keys]: line = f"# {line.strip()} -> mxdev disabled (ignore)\n" if variety == "c": return [], [line]