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

List:       kde-commits
Subject:    [kdepim-runtime] migration/kmail: Update migration version
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2011-12-01 9:46:01
Message-ID: 20111201094601.EA010A60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 37073f3c9c456c00c171da42d91650e406dbf0d4 by Kevin Krammer.
Committed on 01/12/2011 at 10:44.
Pushed by krake into branch 'master'.

Update migration version information on success

KMail and the migrator itself check the "Version" entry in group
"Migration" and compare its value with the one from "TargetVersion".

If version is less then target version, the migrator is run again.

This makes sure the version value is updated to the current target value
whenever the migrator runs without error.

M  +5    -0    migration/kmail/main.cpp

http://commits.kde.org/kdepim-runtime/37073f3c9c456c00c171da42d91650e406dbf0d4

diff --git a/migration/kmail/main.cpp b/migration/kmail/main.cpp
index dd98774..3f1bb1e 100644
--- a/migration/kmail/main.cpp
+++ b/migration/kmail/main.cpp
@@ -95,5 +95,10 @@ int main( int argc, char **argv )
   const int result = app->exec();
   if ( InfoDialog::hasError() )
     return 3;
+  
+  // if we have succeeded, update version information
+  migrationCfg.writeEntry( "Version", targetVersion );
+  migrationCfg.sync();
+  
   return result;
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

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