summaryrefslogtreecommitdiffstats
path: root/Doc/tools/mksourcepkg
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-04-03 04:19:14 (GMT)
committerFred Drake <fdrake@acm.org>2000-04-03 04:19:14 (GMT)
commitba82878a3bee6395a8ff13c9c307416a886f93cc (patch)
tree0711fbad046195399f506dc7b3dcf76ef452ea33 /Doc/tools/mksourcepkg
parenta22b576d05d7f7b8f70341268a46c219a3fd6a9c (diff)
downloadcpython-ba82878a3bee6395a8ff13c9c307416a886f93cc.zip
cpython-ba82878a3bee6395a8ff13c9c307416a886f93cc.tar.gz
cpython-ba82878a3bee6395a8ff13c9c307416a886f93cc.tar.bz2
Merged changes from the 1.5.2p2 release.
Diffstat (limited to 'Doc/tools/mksourcepkg')
-rwxr-xr-xDoc/tools/mksourcepkg4
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: