mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
systemd-boot-builder: allow underscores in the specialisation name
This commit is contained in:
parent
57a30e4cbd
commit
d38257b024
@ -65,7 +65,7 @@ class Entry:
|
|||||||
# Matching nixos*-generation-$number*.conf
|
# Matching nixos*-generation-$number*.conf
|
||||||
rex_generation = re.compile(r"^nixos.*-generation-([0-9]+).*\.conf$")
|
rex_generation = re.compile(r"^nixos.*-generation-([0-9]+).*\.conf$")
|
||||||
# Matching nixos*-generation-$number-specialisation-$specialisation_name*.conf
|
# Matching nixos*-generation-$number-specialisation-$specialisation_name*.conf
|
||||||
rex_specialisation = re.compile(r"^nixos.*-generation-([0-9]+)-specialisation-([a-zA-Z0-9]+).*\.conf$")
|
rex_specialisation = re.compile(r"^nixos.*-generation-([0-9]+)-specialisation-([a-zA-Z0-9_]+).*\.conf$")
|
||||||
profile = rex_profile.sub(r"\1", filename) if rex_profile.match(filename) else None
|
profile = rex_profile.sub(r"\1", filename) if rex_profile.match(filename) else None
|
||||||
specialisation = rex_specialisation.sub(r"\2", filename) if rex_specialisation.match(filename) else None
|
specialisation = rex_specialisation.sub(r"\2", filename) if rex_specialisation.match(filename) else None
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user