Repository navigation
Adds explicit mime type to upload_nightly.sh - #12156
Merged
Merged
Conversation
|
Heads up! This PR modifies the following files:
|
| s3cmd put "${2}" "${package_upload_path}" | ||
| s3cmd cp "${package_upload_path}" "${nightly_upload_dir}/servo-latest.${3}" | ||
| s3cmd --mime-type="application/octet-stream" put "${2}" "${package_upload_path}" | ||
| s3cmd --mime-type="application/octet-stream" cp "${package_upload_path}" "${nightly_upload_dir}/servo-latest.${3}" |
Contributor
There was a problem hiding this comment.
I believe we don't need to specify a mime type when copying an existing object.
This changes the script to pass the `--mime-type` option to `s3cmd`, as described [here](http://s3tools.org/usage). The MIME type used is `application/octet-stream`. Fixes servo#12153.
jimberlage
force-pushed
the
12153/mime-type-s3
branch
from
July 2, 2016 04:01
2003e1e to
137bf9f
Compare
Contributor
|
@bors-servo r=aneeshusa |
Contributor
|
📌 Commit 137bf9f has been approved by |
bors-servo
pushed a commit
that referenced
this pull request
Jul 2, 2016
Adds explicit mime type to upload_nightly.sh <!-- Please describe your changes on the following line: --> This changes the script to pass the `--mime-type` option to `s3cmd`, as described [here](http://s3tools.org/usage). The MIME type used is `application/octet-stream`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #12153 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because this is a minimal change to the upload_nightly.sh script. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12156) <!-- Reviewable:end -->
Contributor
Contributor
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This changes the script to pass the
--mime-typeoption tos3cmd, asdescribed here. The MIME type used is
application/octet-stream../mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is