feat: support deepin OS (#444)

This commit is contained in:
SteveLauC
2023-05-27 17:41:51 +08:00
committed by GitHub
parent 66860f1848
commit 1ab0232d96
2 changed files with 14 additions and 1 deletions

View File

@@ -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);
}
}