topgrade-rs / topgrade

Upgrade all the things
GNU General Public License v3.0
2.07k stars 141 forks source link

Improve OpenBSD -CURRENT detection and Dry-run feedback #954

Closed Izder456 closed 1 month ago

Izder456 commented 1 month ago

What does this PR do

This commit improves the -CURRENT detection by way of parsing /etc/motd. This change is more future-proof as when OpenBSD nears a stable release, uname will temporarily report like -STABLE.

This commit also adds feedback if -CURRENT is found to make debugging this feature easier with --dry-run, or, just a regular run as well.

Standards checklist

Izder456 commented 1 month ago

@SteveLauC

Force pushed a fix to my fork. Thanks for the review.

This good?

Izder456 commented 1 month ago

@SteveLauC

Pushed a commit to make it less talky. I also swapped "update" for "upgrade" to mirror other steps' verbiage.

Ok?