[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepimlibs/kresources (silent)
From:       Allen Winter <winter () kde ! org>
Date:       2008-12-31 23:10:47
Message-ID: 1230765047.045249.17030.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 903969 by winterz:

minor coding style.
SVN_SILENT:


 M  +6 -3      factory.cpp  


--- trunk/KDE/kdepimlibs/kresources/factory.cpp #903968:903969
@@ -81,16 +81,19 @@
     if ( enabled && currentVersion < targetVersion ) {
       kDebug() << "Performing Akonadi migration. Good luck!";
       KProcess proc;
-      proc.setProgram( "kres-migrator", QStringList() << "--interactive-on-change" \
<< "--type" << resourceFamily ); +      proc.setProgram( "kres-migrator",
+                       QStringList() << "--interactive-on-change" << "--type" << \
resourceFamily );  proc.start();
       bool result = proc.waitForStarted();
-      if ( result )
+      if ( result ) {
         result = proc.waitForFinished();
+      }
       if ( result && proc.exitCode() == 0 ) {
         kDebug() << "Akonadi migration has been successful";
         migrationCfg.writeEntry( "Version-" + resourceFamily, targetVersion );
         migrationCfg.sync();
-      } else if ( !result || proc.exitCode() != 1 ) { // exit code 1 means it is \
already running, so we are probably called by a migrator instance +      } else if ( \
!result || proc.exitCode() != 1 ) { +        // exit code 1 means it is already \
running, so we are probably called by a migrator instance  kError() << "Akonadi \
migration failed!";  kError() << "command was: " << proc.program();
         kError() << "exit code: " << proc.exitCode();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic