From 5f01f369a975143bd72a02e5cb25245db766ff18 Mon Sep 17 00:00:00 2001 From: Aurelien Gateau Date: Thu, 3 Jun 2010 14:21:22 +0200 Subject: [PATCH] Do not pass the dir part of the tarball name to LP --- lp-project-upload | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lp-project-upload b/lp-project-upload index df77d56..e44fc01 100755 --- a/lp-project-upload +++ b/lp-project-upload @@ -98,7 +98,8 @@ try: signature_content = None # Create a new product release file. - release.add_file(filename=tarball, description='release tarball', + filename = os.path.basename(tarball) + release.add_file(filename=filename, description='release tarball', file_content=file_content, content_type='appplication/x-gzip', file_type='Code Release Tarball', signature_filename=signature, signature_content=signature_content)