Artık install dizini de ekleniyor. Yiha!

This commit is contained in:
Barış Metin
2005-06-22 13:19:02 +00:00
parent edd921eeeb
commit 2c1c2ad4a5
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -62,9 +62,9 @@ class ArchiveZip(ArchiveBase):
self.zip.close()
def add_file(self, file):
"""add file or directory to a zip file"""
if os.path.isdir(file):
self.zip.writestr(file + '/', '')
print file
for f in os.listdir(file):
self.add_file(file + '/' + f)
else:
+1 -1
View File
@@ -224,6 +224,6 @@ class PisiBuild:
os.chdir(self.ctx.pkg_dir())
pkg.add_file(self.ctx.const.metadata_xml)
pkg.add_file(self.ctx.const.files_xml)
# pkd.add_dir("install")
pkg.add_file("install")
pkg.close()
os.chdir(c)
+2 -2
View File
@@ -12,8 +12,8 @@ class Package:
self.filename = packagefn
def add_file(self, fn):
"""add a file to package"""
self.impl.add_file(self.filename, fn)
"""add a file or directory to package"""
self.impl.add_file(fn)
def close(self):
self.impl.close()