added rhel to CentOS (#366)
This commit is contained in:
@@ -53,7 +53,7 @@ impl Distribution {
|
||||
}
|
||||
|
||||
Ok(match id {
|
||||
Some("centos") | Some("ol") => Distribution::CentOS,
|
||||
Some("centos") | Some("rhel") | Some("ol") => Distribution::CentOS,
|
||||
Some("clear-linux-os") => Distribution::ClearLinux,
|
||||
Some("fedora") => Distribution::Fedora,
|
||||
Some("void") => Distribution::Void,
|
||||
@@ -482,6 +482,11 @@ mod tests {
|
||||
test_template(&include_str!("os_release/centos"), Distribution::CentOS);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_rhel() {
|
||||
test_template(&include_str!("os_release/rhel"), Distribution::CentOS);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_clearlinux() {
|
||||
test_template(&include_str!("os_release/clearlinux"), Distribution::ClearLinux);
|
||||
|
||||
Reference in New Issue
Block a user