Skip to content

Commit

Permalink
Fix: Correct Distribution ID Names
Browse files Browse the repository at this point in the history
  • Loading branch information
8bitZeta committed Feb 27, 2024
1 parent d90482b commit 7dd3d30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions os_info/src/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ mod tests {
Type::Solus,
Type::SUSE,
Type::Ubuntu,
Type::Ultramarine,
Type::Mint,
Type::Unknown,
Type::Windows,
Expand Down
2 changes: 1 addition & 1 deletion os_info/src/linux/file_release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static DISTRIBUTIONS: [ReleaseInfo; 6] = [
"sles" => Some(Type::SUSE),
"sles_sap" => Some(Type::SUSE), // SUSE SAP
"ubuntu" => Some(Type::Ubuntu),
"ultramarine" => Some(Type::Ultramarine),
"ultramarinelinux" => Some(Type::Ultramarine),

Check warning on line 137 in os_info/src/linux/file_release.rs

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (ultramarinelinux)
//"virtuozzo" => Virtuozzo
//"void" => Void
//"XCP-ng" => xcp-ng
Expand Down
2 changes: 1 addition & 1 deletion os_info/src/linux/lsb_release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn get() -> Option<Info> {
Some("Solus") => Type::Solus,
Some("SUSE") => Type::SUSE,
Some("Ubuntu") => Type::Ubuntu,
Some("Ultramarine") => Type::Ultramarine,
Some("UltramarineLinux") => Type::Ultramarine,
_ => Type::Linux,
};

Expand Down

0 comments on commit 7dd3d30

Please sign in to comment.