From 10c41869358bb1182eb94a974e568f93eb2cd504 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 18 Dec 2023 19:03:23 +0100 Subject: [PATCH] Fix false positive mailman<->mailman3 --- tools/catalog_linter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/catalog_linter.py b/tools/catalog_linter.py index 3657180..4c383a9 100755 --- a/tools/catalog_linter.py +++ b/tools/catalog_linter.py @@ -69,10 +69,12 @@ def check_app(app: str, infos: Dict[str, Any]) -> Generator[Tuple[str, bool], No if wishlist_matches: yield f"app seems to be listed in wishlist: {wishlist_matches}", True + ignored_graveyard_entries = ["mailman"] graveyard_matches = [ grave for grave in get_graveyard() - if SequenceMatcher(None, app, grave).ratio() > 0.9 + if grave not in ignored_graveyard_entries + and SequenceMatcher(None, app, grave).ratio() > 0.9 ] if graveyard_matches: yield f"app seems to be listed in graveyard: {graveyard_matches}", True