[Pkg-owncloud-commits] [owncloud-client] 04/103: HACK to avoid continuation: See task #1448

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Apr 30 18:08:53 UTC 2014


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 08dd9796d10e3eb3964288c49885969d5c507fb9
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Fri Apr 4 10:50:40 2014 +0200

    HACK to avoid continuation: See task #1448
    
    We do not know the _modtime from the server, at this point, so just set
    the current one.  (rather than the one locally)
---
 src/mirall/owncloudpropagator.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/mirall/owncloudpropagator.cpp b/src/mirall/owncloudpropagator.cpp
index ccf22a4..75af585 100644
--- a/src/mirall/owncloudpropagator.cpp
+++ b/src/mirall/owncloudpropagator.cpp
@@ -122,6 +122,10 @@ bool PropagateItemJob::checkForProblemsWithShared(const QString& msg)
             } else if (downloadItem._instruction == CSYNC_INSTRUCTION_SYNC) {
                 // we modified the file locally, jsut create a conflict then
                 downloadItem._instruction = CSYNC_INSTRUCTION_CONFLICT;
+
+                // HACK to avoid continuation: See task #1448:  We do not know the _modtime from the
+                //  server, at this point, so just set the current one. (rather than the one locally)
+                downloadItem._modtime = Utility::qDateTimeToTime_t(QDateTime::currentDateTime());
             } else {
                 // the file was removed or renamed, just recover the old one
                 downloadItem._instruction = CSYNC_INSTRUCTION_SYNC;

-- 
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