[Apt-offline-devel] [SCM] Offline APT Package Manager branch, master, updated. 0.9.5-19-g2b1fdf4

Ritesh Raj Sarraf rrs at researchut.com
Tue Dec 8 10:50:20 UTC 2009


The following commit has been merged in the master branch:
commit 11119829b2614f99503a02010eefe9f2912667ae
Author: Ritesh Raj Sarraf <rrs at researchut.com>
Date:   Thu Dec 3 23:02:25 2009 +0530

    no path manipulations in Archiver class

diff --git a/AptOfflineLib.py b/AptOfflineLib.py
index 6ec94e3..114bc3c 100644
--- a/AptOfflineLib.py
+++ b/AptOfflineLib.py
@@ -380,7 +380,7 @@ class Archiver:
             
                         return True
 
-        def decompress_the_file( self, archive_file, path, target_file, archive_type ):
+        def decompress_the_file( self, archive_file, target_file, archive_type ):
                 '''Extracts all the files from a single condensed archive file'''
                 if archive_type == "bzip2" or archive_type == "gzip":
                         if archive_type == "bzip2":
@@ -397,7 +397,7 @@ class Archiver:
                                 return False
                                     
                         try:
-                                write_to = open ( os.path.join( path, target_file ), 'wb' )
+                                write_to = open ( target_file, 'wb' )
                         except IOError:
                                 return False
                         
@@ -421,7 +421,7 @@ class Archiver:
                         #FIXME:
                         for filename in zip_file.namelist():
                                 try:
-                                        write_to = open ( os.path.join( path, filename ), 'wb' )
+                                        write_to = open ( filename, 'wb' )
                                 except IOError:
                                         return False
                                 write_to.write(zip_file.read(filename) )

-- 
Offline APT Package Manager



More information about the Apt-offline-devel mailing list