[tuxdroid-svn] r5303 - software_suite_v3/smart-core/smart-server/trunk
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-08-09 13:22:23
|
Author: remi
Date: 2009-08-09 15:22:13 +0200 (Sun, 09 Aug 2009)
New Revision: 5303
Modified:
software_suite_v3/smart-core/smart-server/trunk/TDSAutoUpdater.py
Log:
* Updated timeout of updates download
Modified: software_suite_v3/smart-core/smart-server/trunk/TDSAutoUpdater.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/TDSAutoUpdater.py 2009-08-09 12:34:39 UTC (rev 5302)
+++ software_suite_v3/smart-core/smart-server/trunk/TDSAutoUpdater.py 2009-08-09 13:22:13 UTC (rev 5303)
@@ -197,7 +197,7 @@
"""Check for updates.
"""
# Wait for connection to internet enabled
- while not URLTools.URLCheck("http://ftp.kysoh.com", 1.0):
+ while not URLTools.URLCheck("http://ftp.kysoh.com", 2.0):
time.sleep(1.0)
self.__logger.logInfo("Internet connection is detected")
# Download conf files
@@ -234,7 +234,7 @@
self.__logger.logInfo("\tStart to download the new version installer")
self.__logger.logInfo("\tFrom [%s]" % installerUrl)
self.__logger.logInfo("\tTo [%s]" % installerDest)
- if URLTools.URLDownloadToFile(installerUrl, installerDest):
+ if URLTools.URLDownloadToFile(installerUrl, installerDest, 9999.0):
self.__logger.logInfo("\tNew installer is successfully downloaded")
destConf = os.path.join(TDS_UPDATES_PATH,
UPDATES_PARTS[partName][PART_CONF_DEST])
|