Adds os recognition support for manjaro linux (#154)
This commit is contained in:
committed by
Roey Darwish Dror
parent
c0c155fc8b
commit
9e89bfc84b
@@ -36,7 +36,7 @@ impl Distribution {
|
||||
match (os_release.id.as_ref(), os_release.id_like.as_ref().map(String::as_str)) {
|
||||
("debian", _) | (_, Some("debian")) | (_, Some("ubuntu")) => Distribution::Debian,
|
||||
(_, Some("\"suse\"")) => Distribution::Suse,
|
||||
("arch", _) | (_, Some("archlinux")) | (_, Some("\"arch\"")) => Distribution::Arch,
|
||||
("arch", _) | (_, Some("archlinux")) | (_, Some("\"arch\"")) | (_, Some("arch")) => Distribution::Arch,
|
||||
("\"centos\"", _) | ("\"ol\"", _) => Distribution::CentOS,
|
||||
("fedora", _) => Distribution::Fedora,
|
||||
("void", _) => Distribution::Void,
|
||||
@@ -384,4 +384,10 @@ mod tests {
|
||||
fn test_antergos() {
|
||||
test_template(&include_str!("os_release/antergos"), Distribution::Arch);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_manjaro() {
|
||||
test_template(&include_str!("os_release/manjaro"), Distribution::Arch);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user