Skip to content

Commit

Permalink
Fix: Add Types for Ultramarine Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
8bitZeta committed Feb 25, 2024
1 parent 6a43b42 commit f983fc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions os_info/src/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ mod tests {
| Type::Solus
| Type::SUSE
| Type::Ubuntu
| Type::Ultramarine
| Type::Mint => (),
os_type => {
panic!("Unexpected OS type: {}", os_type);
Expand Down
4 changes: 4 additions & 0 deletions os_info/src/os_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ pub enum Type {
SUSE,
/// Ubuntu (<https://en.wikipedia.org/wiki/Ubuntu_(operating_system)>).
Ubuntu,
/// Ultramarine (<https://ultramarine-linux.org/>).
Ultramarine,
/// Unknown operating system.
Unknown,
/// Windows (<https://en.wikipedia.org/wiki/Microsoft_Windows>).
Expand Down Expand Up @@ -127,6 +129,7 @@ impl Display for Type {
Type::RedHatEnterprise => write!(f, "Red Hat Enterprise Linux"),
Type::RockyLinux => write!(f, "Rocky Linux"),
Type::SUSE => write!(f, "SUSE Linux Enterprise Server"),
Type::Ultramarine => write!(f, "Ultramarine Linux"),
_ => write!(f, "{self:?}"),
}
}
Expand Down Expand Up @@ -178,6 +181,7 @@ mod tests {
(Type::Solus, "Solus"),
(Type::SUSE, "SUSE Linux Enterprise Server"),
(Type::Ubuntu, "Ubuntu"),
(Type::Ultramarine, "Ultramarine Linux"),
(Type::Unknown, "Unknown"),
(Type::Windows, "Windows"),
];
Expand Down

0 comments on commit f983fc3

Please sign in to comment.