Adds os recognition support for anarchy linux (#179)
* Adds os recognition support for anarchy linux * Fix formatting issue
This commit is contained in:
committed by
Roey Darwish Dror
parent
6874b1bb9c
commit
7b667cbfcf
@@ -37,7 +37,9 @@ impl Distribution {
|
|||||||
Ok(match (id, id_like) {
|
Ok(match (id, id_like) {
|
||||||
(Some("debian"), _) | (_, Some("debian")) | (_, Some("ubuntu")) => Distribution::Debian,
|
(Some("debian"), _) | (_, Some("debian")) | (_, Some("ubuntu")) => Distribution::Debian,
|
||||||
(_, Some("suse")) => Distribution::Suse,
|
(_, Some("suse")) => Distribution::Suse,
|
||||||
(Some("arch"), _) | (_, Some("archlinux")) | (_, Some("arch")) => Distribution::Arch,
|
(Some("arch"), _) | (_, Some("archlinux")) | (_, Some("arch")) | (_, Some("anarchylinux")) => {
|
||||||
|
Distribution::Arch
|
||||||
|
}
|
||||||
(Some("centos"), _) | (Some("ol"), _) => Distribution::CentOS,
|
(Some("centos"), _) | (Some("ol"), _) => Distribution::CentOS,
|
||||||
(Some("fedora"), _) => Distribution::Fedora,
|
(Some("fedora"), _) => Distribution::Fedora,
|
||||||
(Some("void"), _) => Distribution::Void,
|
(Some("void"), _) => Distribution::Void,
|
||||||
@@ -384,4 +386,8 @@ mod tests {
|
|||||||
test_template(&include_str!("os_release/manjaro"), Distribution::Arch);
|
test_template(&include_str!("os_release/manjaro"), Distribution::Arch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_anarchy() {
|
||||||
|
test_template(&include_str!("os_release/anarchy"), Distribution::Arch);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
6
src/steps/os/os_release/anarchy
Normal file
6
src/steps/os/os_release/anarchy
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
NAME="Anarchy Linux"
|
||||||
|
PRETTY_NAME="Anarchy Linux"
|
||||||
|
ID=anarchy
|
||||||
|
ID_LIKE=anarchylinux
|
||||||
|
ANSI_COLOR="0;36"
|
||||||
|
HOME_URL="https://anarchylinux.org/"
|
||||||
Reference in New Issue
Block a user