Actually compress the source tarball.

This commit is contained in:
Marco Pesenti Gritti 2008-06-05 13:38:38 +02:00
parent 4bdddfd20d
commit 7302690aa1

View File

@ -145,7 +145,7 @@ class SourcePackager(Packager):
ignore_files=['.gitignore']) ignore_files=['.gitignore'])
def package(self): def package(self):
tar = tarfile.open(self.package_path, "w") tar = tarfile.open(self.package_path, "w:bz2")
for f in self.get_files(): for f in self.get_files():
tar.add(os.path.join(self.config.source_dir, f), tar.add(os.path.join(self.config.source_dir, f),
os.path.join(self.config.tarball_root_dir, f)) os.path.join(self.config.tarball_root_dir, f))