maintainers/scripts/remove-old-aliases.py: ignore lines which have 'preserve, reason:' in them

This commit is contained in:
Artturin 2022-03-02 19:02:11 +02:00
parent 43a765422f
commit 6ebf051cc0
2 changed files with 8 additions and 3 deletions

View file

@ -57,7 +57,7 @@ def get_date_lists(
except ValueError:
continue
if my_date is None or my_date > cutoffdate:
if my_date is None or my_date > cutoffdate or "preserve, reason:" in line.lower():
continue
if "=" not in line: