Merge pull request #162511 from Artturin/add-alias-keep-feature
This commit is contained in:
commit
4152377b66
|
@ -57,7 +57,7 @@ def get_date_lists(
|
||||||
except ValueError:
|
except ValueError:
|
||||||
continue
|
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
|
continue
|
||||||
|
|
||||||
if "=" not in line:
|
if "=" not in line:
|
||||||
|
|
|
@ -38,9 +38,14 @@ in
|
||||||
# A script to convert old aliases to throws and remove old
|
# A script to convert old aliases to throws and remove old
|
||||||
# throws can be found in './maintainers/scripts/remove-old-aliases.py'.
|
# 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 ({
|
mapAliases ({
|
||||||
# forceSystem should not be used directly in Nixpkgs.
|
# Added 2018-07-16 preserve, reason: forceSystem should not be used directly in Nixpkgs.
|
||||||
# Added 2018-07-16
|
|
||||||
forceSystem = system: _:
|
forceSystem = system: _:
|
||||||
(import self.path { localSystem = { inherit system; }; });
|
(import self.path { localSystem = { inherit system; }; });
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue