Allow downgrading of existing addons

This commit is contained in:
Artem Khrapov 2020-11-18 19:33:54 +03:00 committed by GitHub
parent 1f2eb4b4b2
commit 967504aba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ addon_tracking_info get_addon_tracking_info(const addon_info& addon)
if(t.remote_version == t.installed_version) {
t.state = ADDON_INSTALLED;
} else if(t.remote_version > t.installed_version) {
} else if(t.remote_version > t.installed_version || t.remote_version < t.installed_version) {
t.state = ADDON_INSTALLED_UPGRADABLE;
} else if(t.remote_version == version_info()) {
// Remote version not set.