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:
@@ -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>
|
2010-02-22 Fatih Aşıcı <fatih@pardus.org.tr>
|
||||||
* pisi/cli/addrepo.py, pisi/db/repodb.py: Remove the check
|
* pisi/cli/addrepo.py, pisi/db/repodb.py: Remove the check
|
||||||
for repository architecture as the current infrastructure
|
for repository architecture as the current infrastructure
|
||||||
|
|||||||
+2
-1
@@ -471,7 +471,8 @@ class ArchiveZip(ArchiveBase):
|
|||||||
if sys.version_info[:2] < (2, 6):
|
if sys.version_info[:2] < (2, 6):
|
||||||
zip_obj.decompressToFile(info.filename, ofile)
|
zip_obj.decompressToFile(info.filename, ofile)
|
||||||
else:
|
else:
|
||||||
zip_obj.extract(info.filename, target_dir)
|
info.filename = outpath
|
||||||
|
zip_obj.extract(info, target_dir)
|
||||||
os.chmod(ofile, perm)
|
os.chmod(ofile, perm)
|
||||||
|
|
||||||
def unpack_files(self, paths, target_dir):
|
def unpack_files(self, paths, target_dir):
|
||||||
|
|||||||
Reference in New Issue
Block a user