[Pypt-offline-general] SF.net SVN: pypt-offline: [162] trunk/pypt_core.py
Status: Beta
Brought to you by:
riteshsarraf
|
From: <rit...@us...> - 2007-07-29 20:46:40
|
Revision: 162
http://pypt-offline.svn.sourceforge.net/pypt-offline/?rev=162&view=rev
Author: riteshsarraf
Date: 2007-07-29 13:46:42 -0700 (Sun, 29 Jul 2007)
Log Message:
-----------
* Some more formatting fixes
* Another Vim v/s Eclipse Editor fight
Modified Paths:
--------------
trunk/pypt_core.py
Modified: trunk/pypt_core.py
===================================================================
--- trunk/pypt_core.py 2007-07-29 13:38:20 UTC (rev 161)
+++ trunk/pypt_core.py 2007-07-29 20:46:42 UTC (rev 162)
@@ -521,10 +521,10 @@
log.err("%s\n" % (e.reason))
if hasattr(e, 'code') and hasattr(e, 'reason'):
errfunc(e.code, e.reason, file)
+
+ except socket.timeout:
+ errfunc(101010, "Socket timeout.", file)
- except socket.timeout:
- errfunc(101010, "Socket timeout.", file)
-
def copy_first_match(cache_dir, filename, dest_dir, checksum): # aka new_walk_tree_copy()
'''Walks into "reposiotry" looking for "filename".
If found, copies it to "dest_dir" but first verifies their md5 "checksum".'''
@@ -734,7 +734,7 @@
elif key == 'Upgrade':
PackageName = file.split("_")[0]
if cache_dir is None:
- log.msg("Downloading %s - %d KB\n" % (file, size/1024))
+ log.msg("Downloading %s - %d KB\n" % (file, size/1024 ) )
if FetcherInstance.download_from_web(url, file, download_path) != True:
errlist.append(PackageName)
@@ -758,7 +758,7 @@
else:
if find_first_match(cache_dir, file, download_path, checksum) == False:
- log.msg("Downloading %s - %d KB\n" % (PackageName, size/1024))
+ log.msg("Downloading %s - %d KB\n" % (PackageName, size/1024 ) )
if FetcherInstance.download_from_web(url, file, download_path) != True:
errlist.append(PackageName)
@@ -852,7 +852,7 @@
exit_status = response.get()
if exit_status == False:
- log.msg("Downloading %s\n" % (PackageName) )
+ log.msg("Downloading %s.%s\n" % (PackageName, LINE_OVERWRITE_FULL) )
if FetcherInstance.download_from_web(url, file, download_path) == True:
log.success("\r%s done.%s\n" % (PackageName, LINE_OVERWRITE_FULL) )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|