Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upReport an errror if a package has duplicates allowed but there are no duplicates #19325
Conversation
highfive
commented
Nov 21, 2017
|
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. |
highfive
commented
Nov 21, 2017
|
Heads up! This PR modifies the following files:
|
06ef60b
to
067ce4f
| if has_duplicates and duplicates_allowed: | ||
| continue | ||
|
|
||
| if not (has_duplicates or duplicates_allowed): |
This comment has been minimized.
This comment has been minimized.
KiChjang
Nov 21, 2017
Member
This combined with the line above looks like an exclusive-or to me. Perhaps you can combine the two conditions and use == instead?
| continue | ||
|
|
||
| message = "duplicate versions for package `{}`".format(name) | ||
| if duplicates_allowed: | ||
| message = 'duplicates for {} is allowed, but only signle version found'.format(name) |
This comment has been minimized.
This comment has been minimized.
|
My python-fu is still subpar, so I'm going to have to redirect this. r? @jdm |
|
I agree with KiChjang's comments. |
067ce4f
to
df8d9e4
df8d9e4
to
e6d9fd8
|
@bors-servo: r+ |
|
|
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 -->
|
|
m-novikov commentedNov 21, 2017
•
edited by SimonSapin
Resolves: #19306
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is