mirror of
https://github.com/servo/servo.git
synced 2025-06-26 10:04:33 +01:00
Find upload package extension correctly.
This commit is contained in:
parent
2829945963
commit
03e6787bf9
1 changed files with 2 additions and 2 deletions
|
@ -627,8 +627,8 @@ class PackageCommands(CommandBase):
|
|||
nightly_dir = 'nightly/{}'.format(platform)
|
||||
filename = nightly_filename(package, timestamp)
|
||||
package_upload_key = '{}/{}'.format(nightly_dir, filename)
|
||||
extension = path.basename(package).partition('.')[2]
|
||||
latest_upload_key = '{}/servo-latest.{}'.format(nightly_dir, extension)
|
||||
extension = path.splitext(path.basename(package))[1]
|
||||
latest_upload_key = '{}/servo-latest{}'.format(nightly_dir, extension)
|
||||
|
||||
s3.upload_file(package, BUCKET, package_upload_key)
|
||||
copy_source = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue