[Erp5-report] r25800 - /erp5/trunk/products/TIDStorage/repozo/restore_tidstorage.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Mar 3 10:36:54 CET 2009
Author: luke
Date: Tue Mar 3 10:36:53 2009
New Revision: 25800
URL: http://svn.erp5.org?rev=25800&view=rev
Log:
- execute only when run, use python2.4
Modified:
erp5/trunk/products/TIDStorage/repozo/restore_tidstorage.py
Modified: erp5/trunk/products/TIDStorage/repozo/restore_tidstorage.py
URL: http://svn.erp5.org/erp5/trunk/products/TIDStorage/repozo/restore_tidstorage.py?rev=25800&r1=25799&r2=25800&view=diff
==============================================================================
--- erp5/trunk/products/TIDStorage/repozo/restore_tidstorage.py [utf8] (original)
+++ erp5/trunk/products/TIDStorage/repozo/restore_tidstorage.py [utf8] Tue Mar 3 10:36:53 2009
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2.4
##############################################################################
#
@@ -181,8 +181,11 @@
usage(1, msg)
return options
-options = parseargs()
-recover(
- data_fs_backup_path_dict=options.data_fs_backup_path_dict,
- status_file=options.status_file)
+def main():
+ options = parseargs()
+ recover(
+ data_fs_backup_path_dict=options.data_fs_backup_path_dict,
+ status_file=options.status_file)
+if __name__ == '__main__':
+ sys.exit(main())
More information about the Erp5-report
mailing list