[Pypt-offline-general] SF.net SVN: pypt-offline: [153] trunk
Status: Beta
Brought to you by:
riteshsarraf
|
From: <rit...@us...> - 2007-07-24 11:58:51
|
Revision: 153
http://svn.sourceforge.net/pypt-offline/?rev=153&view=rev
Author: riteshsarraf
Date: 2007-07-24 04:58:53 -0700 (Tue, 24 Jul 2007)
Log Message:
-----------
* Passing the filename to write() in ZipFile ended up with full path name inside the archive. We don't need that, hence use basename.
* Minor string formatting error in the --cache-dir option
Modified Paths:
--------------
trunk/pypt_core.py
Property Changed:
----------------
trunk/
Property changes on: trunk
___________________________________________________________________
Name: svn:ignore
- .project
.pydevproject
+ .project
.pydevproject
hgrc
hg_push_repos
.hg
pypt-downloads
.hgrc
.hgignore
Modified: trunk/pypt_core.py
===================================================================
--- trunk/pypt_core.py 2007-07-24 08:26:23 UTC (rev 152)
+++ trunk/pypt_core.py 2007-07-24 11:58:53 UTC (rev 153)
@@ -219,7 +219,7 @@
#except:
#TODO Handle the exception
#return False
- filename.write(files_to_compress, files_to_compress, zipfile.ZIP_DEFLATED)
+ filename.write(files_to_compress, os.path.basename(files_to_compress), zipfile.ZIP_DEFLATED)
filename.close()
if self.lock:
@@ -807,7 +807,7 @@
if ArgumentOptions.deb_bugs:
bug_fetched = 0
- log.verbose("Fetching bug reports for package %s.\n" (PackageName) )
+ log.verbose("Fetching bug reports for package %s.\n" % (PackageName) )
if FetchBugReportsDebian.FetchBugsDebian(PackageName):
log.verbose("Fetched bug reports for package %s.\n" % (PackageName) )
bug_fetched = 1
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|