← Back to team overview

mythbuntu-dev team mailing list archive

[Merge] lp:~agateau/ubuntu-dev-tools/lp-project-upload-tarball-path into lp:ubuntu-dev-tools

 

Aurélien Gâteau has proposed merging lp:~agateau/ubuntu-dev-tools/lp-project-upload-tarball-path into lp:ubuntu-dev-tools.

Requested reviews:
  Ubuntu Development Team (ubuntu-dev)


If one uses lp-project-upload like this:

  lp-project-upload foo 1.0 build/foo-1.0.tar.bz2

Then the file on LP is named build-foo-1.0.tar.bz2.

Passing only the filename to the "release" object fixes it.


-- 
https://code.launchpad.net/~agateau/ubuntu-dev-tools/lp-project-upload-tarball-path/+merge/26693
Your team Ubuntu Development Team is requested to review the proposed merge of lp:~agateau/ubuntu-dev-tools/lp-project-upload-tarball-path into lp:ubuntu-dev-tools.
=== modified file 'lp-project-upload'
--- lp-project-upload	2009-11-20 22:59:00 +0000
+++ lp-project-upload	2010-06-03 12:25:35 +0000
@@ -98,7 +98,8 @@
         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)


Follow ups