Skip to content

selfupdate: add instructions on reverting the update - #5141

Merged
ivandeex merged 1 commit into
rclone:masterfrom
ivandeex:pr-revertbeta
Mar 18, 2021
Merged

ivandeex merged 1 commit into
rclone:masterfrom
ivandeex:pr-revertbeta

Conversation

@ivandeex

@ivandeex ivandeex commented Mar 18, 2021 •

Copy link
Copy Markdown
Member

What is the purpose of this change?

This PR polishes the selfupdate command a little to aid users with reverting updates:

  • the success message will mention a previous version number
  • the help synopsis will include instructions on reverting the update and help to identify betas or development builds
  • the help will tell more about beta updates and include a fallback for old rclone version

These details are useful for those who submit new github requests or posts on forum
but will be gathered in the single place.

Additionally: removed a dead piece of code, probably a refactoring leftover.

Was the change discussed in an issue or in the forum before?

Yes, in #5096

I cannot include this fix right there because #5096 is a backlog PR and has a special lifecycle.

Checklist

  • I have read the contribution guidelines.
  • I have added tests for all changes in this PR if appropriate.
  • I have added documentation for the changes if appropriate.
  • All commit messages are in house style.
  • I'm done, this Pull Request is ready for review :-)

@ivandeex
ivandeex requested a review from darthShadow March 18, 2021 08:03
@ivandeex ivandeex linked an issue Mar 18, 2021 that may be closed by this pull request
@ivandeex ivandeex added this to the v1.55 milestone Mar 18, 2021
@ivandeex

ivandeex commented Mar 18, 2021 •

Copy link
Copy Markdown
Member Author

I thought about regex-matching current version and printing the full revert command (including --stable if it's vX.Y.Z, --beta if vX.Y.Z-long.stuff or "you cannot revert to a local build" if it's vX.Y.Z-DEV).
Then decided to just print the old version and document the logic because I'm afraid such heuristics might be fragile.

@darthShadow darthShadow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@ivandeex
ivandeex merged commit 2bdbf00 into rclone:master Mar 18, 2021
@ivandeex
ivandeex deleted the pr-revertbeta branch March 21, 2021 20:26
lafkpages pushed a commit to lafkpages/rclone that referenced this pull request Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Instruct users to upgrade rclone

2 participants