diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2019-08-14 15:59:41 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2019-08-15 11:44:33 +0300 |
commit | c8663063fd3660a7893d90d8203efc67b4b3f58f (patch) | |
tree | 9d116a3e5cedac82607fae8fbfe91a0314d20d5b /src | |
parent | 02a4ac773e584e59d4f8be5dd22b62827624f2db (diff) |
NSISUpdater: Improve logging for version comparison
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/updater/ocupdater.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/gui/updater/ocupdater.cpp b/src/gui/updater/ocupdater.cpp index f555d3476..641868ba0 100644 --- a/src/gui/updater/ocupdater.cpp +++ b/src/gui/updater/ocupdater.cpp @@ -335,10 +335,16 @@ void NSISUpdater::versionInfoArrived(const UpdateInfo &info) qint64 infoVersion = Helper::stringVersionToInt(info.version()); qint64 seenVersion = Helper::stringVersionToInt(settings.value(seenVersionC).toString()); qint64 currVersion = Helper::currentVersionToInt(); - if (info.version().isEmpty() - || infoVersion <= currVersion - || infoVersion <= seenVersion) { + if (info.version().isEmpty()) + { + qCInfo(lcUpdater) << "No version information available at the moment"; + setDownloadState(UpToDate); + } else if (infoVersion <= currVersion + || infoVersion <= seenVersion) { qCInfo(lcUpdater) << "Client is on latest version!"; + qCInfo(lcUpdater) << "Your version:" << currVersion; + qCInfo(lcUpdater) << "Skipped version:" << seenVersion; + qCInfo(lcUpdater) << "Available version:" << infoVersion; setDownloadState(UpToDate); } else { QString url = info.downloadUrl(); |