diff --git a/src/steps/os/linux.rs b/src/steps/os/linux.rs index 53ed1d9b..99ba94c4 100644 --- a/src/steps/os/linux.rs +++ b/src/steps/os/linux.rs @@ -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); + } } diff --git a/src/steps/os/os_release/deepin b/src/steps/os/os_release/deepin new file mode 100644 index 00000000..af88bb35 --- /dev/null +++ b/src/steps/os/os_release/deepin @@ -0,0 +1,8 @@ +PRETTY_NAME="Deepin 20.9" +NAME="Deepin" +VERSION_ID="20.9" +VERSION="20.9" +VERSION_CODENAME="apricot" +ID=Deepin +HOME_URL="https://www.deepin.org/" +BUG_REPORT_URL="https://bbs.deepin.org/"