From a1286f8f43859b14f951913c52bdb6e3e3100614 Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 25 May 2009 13:50:05 -0400 Subject: [PATCH] release.py: Remove the archives after uploading to Sourceforge Signed-off-by: James Vega (cherry picked from commit b170d5f9c36f3812953eab92b13f0fe21a283d65) --- sandbox/release.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sandbox/release.py b/sandbox/release.py index f39acbcce..0538e6c30 100644 --- a/sandbox/release.py +++ b/sandbox/release.py @@ -130,12 +130,15 @@ if __name__ == '__main__': print 'Uploading package files to upload.sf.net.' system('scp Supybot-%s.tar.gz Supybot-%s.tar.bz2 Supybot-%s.zip ' '%s@frs.sourceforge.net:uploads' % (v, v, v, u)) + os.unlink('Supybot-%s.tar.gz' % v) + os.unlink('Supybot-%s.tar.bz2' % v) + os.unlink('Supybot-%s.zip' % v) print 'Copying new version.txt over to project webserver.' system('echo %s > version.txt' % v) system('scp version.txt %s@web.sf.net:/home/groups/s/su/supybot/htdocs' %u) - system('rm version.txt') + os.unlink('version.txt') # print 'Generating documentation.' # # docFiles is in the format {directory: files}