mirror of
https://github.com/python/cpython.git
synced 2025-08-16 06:40:56 +00:00
Fixed #1885: --formats=tar,gztar was not working properly in the sdist command
This commit is contained in:
parent
1afe6ddd07
commit
aaedcef578
3 changed files with 73 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue