[Pkg-owncloud-commits] [owncloud-client] 121/470: Old servers: Don't nag if version still undetected #4523

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu May 12 16:24:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit a14b4958642a01614228f6f5ad8cb38b0e0c97ff
Author: Markus Goetz <markus at woboq.com>
Date:   Wed Mar 9 15:57:45 2016 +0100

    Old servers: Don't nag if version still undetected #4523
---
 src/libsync/account.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/libsync/account.cpp b/src/libsync/account.cpp
index 4f920b2..87208a9 100644
--- a/src/libsync/account.cpp
+++ b/src/libsync/account.cpp
@@ -488,6 +488,10 @@ int Account::serverVersionInt() const
 
 bool Account::serverVersionUnsupported() const
 {
+    if (serverVersionInt() == 0) {
+        // not detected yet, assume it is fine.
+        return false;
+    }
     return serverVersionInt() < 0x070000;
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list