diff options
Diffstat (limited to 'Doc/tools/mksourcepkg')
-rwxr-xr-x | Doc/tools/mksourcepkg | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/tools/mksourcepkg b/Doc/tools/mksourcepkg index 00c6c50..260ae6d 100755 --- a/Doc/tools/mksourcepkg +++ b/Doc/tools/mksourcepkg @@ -105,7 +105,9 @@ def main(): run("tar cf - Python-%s | gzip -9 >%s.tgz" % (release, archive)) elif format == "zip": - run("zip -r9 %s.zip Python-%s" + if os.path.exists(archive + ".zip"): + os.unlink(archive + ".zip") + run("zip -q -r9 %s.zip Python-%s" % (archive, release)) # clean up the work area: |