Skip to content
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

app.py, helpers: Reword YNH_APP_UPGRADE_TYPE #1762

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

Salamandar
Copy link
Contributor

  • remove UPGRADE_FULL
  • rename DOWNGRADE_FORCED -> DOWNGRADE
  • rename UPGRADE_FORCED -> UPGRADE_SAME
  • keep the helper ynh_check_app_version_changed behaviour for reverse compatibility.

I renamed because IMHO those _FORCED suffixes are not really useful, and not actually used the way they should:
https://github.com/search?q=org%3AYunoHost-Apps+UPGRADE_FORCED&type=code

The problem

useless code

Solution

remove code

* remove UPGRADE_FULL
* rename DOWNGRADE_FORCED -> DOWNGRADE
* rename UPGRADE_FORCED -> UPGRADE_SAME
* keep the helper ynh_check_app_version_changed behaviour for reverse compatibility.
@alexAubin alexAubin merged commit f53d09c into YunoHost:dev Jan 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants