[Pypt-offline-general] SF.net SVN: pypt-offline: [148] trunk/pypt_core.py
Status: Beta
Brought to you by:
riteshsarraf
From: <rit...@us...> - 2007-06-10 14:02:56
|
Revision: 148 http://svn.sourceforge.net/pypt-offline/?rev=148&view=rev Author: riteshsarraf Date: 2007-06-10 07:02:58 -0700 (Sun, 10 Jun 2007) Log Message: ----------- * Minor changes for syncer() Modified Paths: -------------- trunk/pypt_core.py Modified: trunk/pypt_core.py =================================================================== --- trunk/pypt_core.py 2007-05-24 12:26:56 UTC (rev 147) +++ trunk/pypt_core.py 2007-06-10 14:02:58 UTC (rev 148) @@ -934,8 +934,13 @@ def syncer(install_file_path, target_path, arg_type=None): '''Syncer does the work of syncing the downloaded files. It syncs "install_file_path" which could be a valid file path - or a zip archive to "target_path''' + or a zip archive to "target_path" + arg_type defines whether install_file_path is a zip file + or a folder path + 1 => install_file_path is a File + 2 => install_file_path is a Folder''' + archive = Archiver() if arg_type == 1: try: @@ -982,9 +987,9 @@ os.unlink(filename) elif arg_type == 2: + archive_file_types = ['application/x-bzip2', 'application/gzip', 'application/zip'] for eachfile in os.listdir(install_file_path): - archive_file_types = ['application/x-bzip2', 'application/gzip', 'application/zip'] archive_type = None try: import pypt_magic This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |