feat: support deepin OS (#444)
This commit is contained in:
@@ -63,7 +63,7 @@ impl Distribution {
|
||||
}
|
||||
|
||||
Some("void") => Distribution::Void,
|
||||
Some("debian") | Some("pureos") => Distribution::Debian,
|
||||
Some("debian") | Some("pureos") | Some("Deepin") => Distribution::Debian,
|
||||
Some("arch") | Some("anarchy") | Some("manjaro-arm") | Some("garuda") | Some("artix") => Distribution::Arch,
|
||||
Some("solus") => Distribution::Solus,
|
||||
Some("gentoo") => Distribution::Gentoo,
|
||||
@@ -1011,4 +1011,9 @@ mod tests {
|
||||
fn test_pureos() {
|
||||
test_template(include_str!("os_release/pureos"), Distribution::Debian);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_deepin() {
|
||||
test_template(include_str!("os_release/deepin"), Distribution::Debian);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user