Detect arch32 (fix #195)
This commit is contained in:
@@ -40,9 +40,11 @@ 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")) | (_, Some("anarchylinux")) => {
|
(Some("arch"), _)
|
||||||
Distribution::Arch
|
| (Some("arch32"), _)
|
||||||
}
|
| (_, 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,
|
||||||
@@ -350,6 +352,7 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_arch_linux() {
|
fn test_arch_linux() {
|
||||||
test_template(&include_str!("os_release/arch"), Distribution::Arch);
|
test_template(&include_str!("os_release/arch"), Distribution::Arch);
|
||||||
|
test_template(&include_str!("os_release/arch32"), Distribution::Arch);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
11
src/steps/os/os_release/arch32
Normal file
11
src/steps/os/os_release/arch32
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
NAME="Arch Linux 32"
|
||||||
|
PRETTY_NAME="Arch Linux 32"
|
||||||
|
ID=arch32
|
||||||
|
ID_LIKE="arch archlinux"
|
||||||
|
BUILD_ID=rolling
|
||||||
|
ANSI_COLOR="0;36"
|
||||||
|
HOME_URL="https://www.archlinux32.org/"
|
||||||
|
DOCUMENTATION_URL="https://wiki.archlinux.org/"
|
||||||
|
SUPPORT_URL="https://bbs.archlinux32.org/"
|
||||||
|
BUG_REPORT_URL="https://bugs.archlinux32.org/"
|
||||||
|
LOGO=archlinux
|
||||||
Reference in New Issue
Block a user