1
0
Fork 0

Fix false positive mailman<->mailman3

This commit is contained in:
Alexandre Aubin 2023-12-18 19:03:23 +01:00
parent e02e5fb9cb
commit f73a2c183c

View file

@ -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