diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-02-14 16:07:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-14 16:07:10 -0800 |
commit | cc99d9400aa43673e8ce52c01607c62c1dfd118a (patch) | |
tree | 49f411ccbdc79adec28098a4bdc41742329cebc6 /python/tidy | |
parent | 5a624ff9560338024c18ad0abf496fd78d5f6bb1 (diff) | |
parent | 31287d4d9094c424bc89cb0024b381bb1ac336e5 (diff) | |
download | servo-cc99d9400aa43673e8ce52c01607c62c1dfd118a.tar.gz servo-cc99d9400aa43673e8ce52c01607c62c1dfd118a.zip |
Auto merge of #15555 - servo:tidy-ignore-replace, r=nox
tidy: Ignore [replace]’d packages in the duplicate package lint.
<!-- 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: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).
<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- 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/15555)
<!-- Reviewable:end -->
Diffstat (limited to 'python/tidy')
-rw-r--r-- | python/tidy/servo_tidy/tidy.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py index b8025998ec3..9b59b08e473 100644 --- a/python/tidy/servo_tidy/tidy.py +++ b/python/tidy/servo_tidy/tidy.py @@ -330,6 +330,8 @@ def check_lock(file_name, contents): packages_by_name = {} for package in content.get("package", []): + if "replace" in package: + continue source = package.get("source", "") if source == r"registry+https://github.com/rust-lang/crates.io-index": source = "crates.io" |