Repository navigation
Report an errror if a package has duplicates allowed but there are no duplicates - #19325
Conversation
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @KiChjang (or someone else) soon. |
|
Heads up! This PR modifies the following files:
|
06ef60b to
067ce4f
Compare
| if has_duplicates and duplicates_allowed: | ||
| continue | ||
|
|
||
| if not (has_duplicates or duplicates_allowed): |
There was a problem hiding this comment.
This combined with the line above looks like an exclusive-or to me. Perhaps you can combine the two conditions and use == instead?
|
|
||
| message = "duplicate versions for package `{}`".format(name) | ||
| if duplicates_allowed: | ||
| message = 'duplicates for {} is allowed, but only signle version found'.format(name) |
|
My python-fu is still subpar, so I'm going to have to redirect this. r? @jdm |
jdm
left a comment
There was a problem hiding this comment.
I agree with KiChjang's comments.
067ce4f to
df8d9e4
Compare
… duplicates Resolves: servo#19306
df8d9e4 to
e6d9fd8
Compare
|
@bors-servo: r+ |
|
📌 Commit e6d9fd8 has been approved by |
Report an errror if a package has duplicates allowed but there are no duplicates Resolves: #19306 <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #19306 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19325) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
Resolves: #19306
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is