-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(os) consider Fedora Kinoite to be the Fedora Silverblue distribution #638
fix(os) consider Fedora Kinoite to be the Fedora Silverblue distribution #638
Conversation
src/steps/os/linux.rs
Outdated
@@ -54,7 +54,7 @@ impl Distribution { | |||
Some("clear-linux-os") => Distribution::ClearLinux, | |||
Some("fedora") | Some("nobara") => { | |||
return if let Some(variant) = variant { | |||
if variant.contains(&"Silverblue") { | |||
if variant.contains(&"Silverblue") || variant.contains(&"Kinoite") { | |||
Ok(Distribution::FedoraSilverblue) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about we rename Distribution::FedoraSilverblue
to Distribution::FedoraImmutable
since they
only differ in their desktop environments and all use ostree
as their package manager
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to add tests on parsing their /etc/os-release
files, you can find them here: https://github.com/which-distro/os-release/tree/main/fedora
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it. I'll have another commit up soon.
Rename FedoraSilverblue Distribution to FedoraImmutable. Add test cases for Onyx, Sericea and Silverblue. Rename upgrade method to match distribution. Fixes topgrade-rs#637
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Standards checklist:
CONTRIBUTING.md
cargo build
)cargo fmt
)cargo clippy
)cargo test
)For new steps
--dry-run
option works with this step--yes
option works with this step if it is supported bythe underlying command
If you developed a feature or a bug fix for someone else and you do not have the
means to test it, please tag this person here.