Fixed #1885: --formats=tar,gztar was not working properly in the sdist command

This commit is contained in:
Tarek Ziadé 2009-01-25 23:34:00 +00:00
parent 1afe6ddd07
commit aaedcef578
3 changed files with 73 additions and 11 deletions

View file

@ -456,6 +456,10 @@ class sdist (Command):
self.make_release_tree(base_dir, self.filelist.files)
archive_files = [] # remember names of files we create
# tar archive must be created last to avoid overwrite and remove
if 'tar' in self.formats:
self.formats.append(self.formats.pop(self.formats.index('tar')))
for fmt in self.formats:
file = self.make_archive(base_name, fmt, base_dir=base_dir)
archive_files.append(file)