[Pkg-owncloud-commits] [owncloud-client] 84/211: SyncEngine: Show a warning if post update script can not be exec.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Oct 25 09:10:29 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 babe8912420401700c0954507a653952478f4f08
Author: Klaas Freitag <freitag at owncloud.com>
Date: Wed Oct 15 16:43:58 2014 +0200
SyncEngine: Show a warning if post update script can not be exec.
---
src/mirall/syncengine.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mirall/syncengine.cpp b/src/mirall/syncengine.cpp
index 6c24d05..c0312e4 100644
--- a/src/mirall/syncengine.cpp
+++ b/src/mirall/syncengine.cpp
@@ -682,14 +682,16 @@ void SyncEngine::slotDiscoveryJobFinished(int discoveryResult)
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() ) {
+#ifndef NDEBUG
QString script = qgetenv("OWNCLOUD_POST_UPDATE_SCRIPT");
qDebug() << "OOO => Post Update Script: " << script;
QProcess::execute(script.toUtf8());
- }
+#else
+ qDebug() << "**** Attention: POST_UPDATE_SCRIPT installed, but not executed because compiled with NDEBUG";
#endif
+ }
// do a database commit
_journal->commit("post treewalk");
--
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