Author: remi
Date: 2009-09-11 14:05:06 +0200 (Fri, 11 Sep 2009)
New Revision: 5356

Modified:
   software_suite_v3/smart-core/smart-server/trunk/TDSAutoUpdater.py
Log:
* Force to wait the end of the update installation.

Modified: software_suite_v3/smart-core/smart-server/trunk/TDSAutoUpdater.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/TDSAutoUpdater.py   
2009-09-11 08:18:18 UTC (rev 5355)
+++ software_suite_v3/smart-core/smart-server/trunk/TDSAutoUpdater.py   
2009-09-11 12:05:06 UTC (rev 5356)
@@ -175,8 +175,6 @@
                 currentVersion = confDict[archName]["version"]
                 if self.__getCurrentPartVersion(partName) == currentVersion:
                     continue
-                # Write CVER file
-                self.__writeCVerFile(partName, currentVersion)
                 installerFile = os.path.join(TDS_UPDATES_PATH, installerName)
                 if os.name == "nt":
                     cmd = [
@@ -186,6 +184,8 @@
                     ]
                     self.__logger.logInfo("Installation started [%s] (%s)" % 
(installerName, currentVersion))
                     process = subprocess.Popen(cmd)
+                    process.wait()
+                    self.__writeCVerFile(partName, currentVersion)
                     self.__logger.logInfo("Installation finished")
                 else:
                     pass


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to