mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
maintainers/scripts/remove-old-aliases.py: ignore lines which have 'preserve, reason:' in them
This commit is contained in:
parent
43a765422f
commit
6ebf051cc0
|
@ -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:
|
||||
|
|
|
@ -38,9 +38,14 @@ in
|
|||
# A script to convert old aliases to throws and remove old
|
||||
# throws can be found in './maintainers/scripts/remove-old-aliases.py'.
|
||||
|
||||
# Add 'preserve, reason: reason why' after the date if the alias should not be removed.
|
||||
# Try to keep them to a minimum.
|
||||
# valid examples of what to preserve:
|
||||
# distro aliases such as:
|
||||
# debian-package-name -> nixos-package-name
|
||||
|
||||
mapAliases ({
|
||||
# forceSystem should not be used directly in Nixpkgs.
|
||||
# Added 2018-07-16
|
||||
# Added 2018-07-16 preserve, reason: forceSystem should not be used directly in Nixpkgs.
|
||||
forceSystem = system: _:
|
||||
(import self.path { localSystem = { inherit system; }; });
|
||||
|
||||
|
|
Loading…
Reference in a new issue