[Pkg-owncloud-commits] [owncloud-client] 231/332: SyncEngine: allow to do a post upgrade script in debug mode.

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Aug 14 21:07:04 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 0f4cf74ae0cf4448331e1bb681d73e62f82dd78d
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Tue Jul 22 18:07:02 2014 +0200

    SyncEngine: allow to do a post upgrade script in debug mode.
---
 src/mirall/syncengine.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/mirall/syncengine.cpp b/src/mirall/syncengine.cpp
index 8d664f9..cad4ce7 100644
--- a/src/mirall/syncengine.cpp
+++ b/src/mirall/syncengine.cpp
@@ -39,6 +39,7 @@
 #include <QTime>
 #include <QUrl>
 #include <QSslCertificate>
+#include <QProcess>
 
 namespace Mirall {
 
@@ -584,6 +585,15 @@ void SyncEngine::slotUpdateFinished(int updateResult)
     csync_set_module_property(_csync_ctx, "get_dav_session", &session);
     Q_ASSERT(session);
 
+    // post update phase script: allow to tweak stuff by a custom script in debug mode.
+#ifndef NDEBUG
+    if( !qgetenv("OWNCLOUD_POST_UPDATE_SCRIPT").isEmpty() ) {
+        QString script = qgetenv("OWNCLOUD_POST_UPDATE_SCRIPT");
+
+        qDebug() << "OOO => Post Update Script: " << script;
+        QProcess::execute(script.toUtf8());
+    }
+#endif
     _propagator.reset(new OwncloudPropagator (session, _localPath, _remoteUrl, _remotePath,
                                               _journal, &_thread));
     connect(_propagator.data(), SIGNAL(completed(SyncFileItem)),

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