Author: remi
Date: 2009-03-30 13:32:47 +0200 (Mon, 30 Mar 2009)
New Revision: 4254
Modified:
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py
Log:
* handled bad zipped plugins error
Modified:
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py
===================================================================
---
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py
2009-03-29 17:28:01 UTC (rev 4253)
+++
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py
2009-03-30 11:32:47 UTC (rev 4254)
@@ -297,8 +297,14 @@
if not os.path.exists(os.path.dirname(filePath)):
os.makedirs(os.path.dirname(filePath), 511)
if filePath[-1] != os.sep:
- f = open(filePath, 'wb')
- f.write(zf.read(name))
- f.close()
+ try:
+ f = open(filePath, 'wb')
+ try:
+ f.write(zf.read(name))
+ except:
+ f.close()
+ return False
+ finally:
+ f.close()
zf.close()
return True
------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn