File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,13 @@ static int daemon_main(LiteClient& client, const bpo::variables_map& variables_m
332332 // installed, if so then skip an update to the such version/Target
333333 bool is_rollback_target = client.isRollback (target_to_install);
334334
335- if (!is_rollback_target && !client.isTargetActive (target_to_install)) {
335+ const bool is_downgrade{Target::Version (target_to_install.custom_version ()) <
336+ Target::Version (current.custom_version ())};
337+ if (is_downgrade) {
338+ LOG_WARNING << " Downgrade detected; from " << current.custom_version () << " to "
339+ << target_to_install.custom_version () << " , keep running " << current.custom_version ();
340+ }
341+ if (!is_rollback_target && !client.isTargetActive (target_to_install) && !is_downgrade) {
336342 if (!rollback) {
337343 LOG_INFO << " Found new and valid Target to update to: " << target_to_install.filename ()
338344 << " , sha256: " << target_to_install.sha256Hash ();
You can’t perform that action at this time.
0 commit comments