Fix arch based distribution identification (#147)

This commit is contained in:
Idan
2019-05-14 11:40:44 +03:00
committed by Roey Darwish Dror
parent 068fac1e33
commit c81d4c3249

View File

@@ -40,7 +40,7 @@ impl Distribution {
match (os_release.id.as_ref(), os_release.id_like.as_ref().map(String::as_str)) {
(_, Some("debian")) | (_, Some("ubuntu")) => Distribution::Debian,
(_, Some("\"suse\"")) => Distribution::Suse,
("arch", _) => Distribution::Arch,
("arch", _) | (_, Some("archlinux")) => Distribution::Arch,
("centos", _) | ("\"ol\"", _) => Distribution::CentOS,
("fedora", _) => Distribution::Fedora,
("void", _) => Distribution::Void,