Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2019-08-14 15:59:41 +0300
committerHannah von Reth <vonreth@kde.org>2019-08-15 11:44:33 +0300
commitc8663063fd3660a7893d90d8203efc67b4b3f58f (patch)
tree9d116a3e5cedac82607fae8fbfe91a0314d20d5b /src/gui/updater
parent02a4ac773e584e59d4f8be5dd22b62827624f2db (diff)
NSISUpdater: Improve logging for version comparison
Diffstat (limited to 'src/gui/updater')
-rw-r--r--src/gui/updater/ocupdater.cpp12
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();