Install files into correct paths when the old package format is used.

This was a regression introduced when switching to python 2.6.
This commit is contained in:
Fatih Aşıcı
2010-02-27 19:29:09 +00:00
parent 1e8f3899bc
commit 5504639ceb
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -1,3 +1,8 @@
2010-02-27 Fatih Aşıcı <fatih@pardus.org.tr>
* pisi/archive.py: Install files into correct paths when the old
package format is used. This was a regression introduced when
switching to python 2.6.
2010-02-22 Fatih Aşıcı <fatih@pardus.org.tr>
* pisi/cli/addrepo.py, pisi/db/repodb.py: Remove the check
for repository architecture as the current infrastructure
+2 -1
View File
@@ -471,7 +471,8 @@ class ArchiveZip(ArchiveBase):
if sys.version_info[:2] < (2, 6):
zip_obj.decompressToFile(info.filename, ofile)
else:
zip_obj.extract(info.filename, target_dir)
info.filename = outpath
zip_obj.extract(info, target_dir)
os.chmod(ofile, perm)
def unpack_files(self, paths, target_dir):