Skip to content

Commit

Permalink
tidy: Ignore [replace]’d packages in the duplicate package lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Feb 14, 2017
1 parent 5a624ff commit 31287d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/tidy/servo_tidy/tidy.py
Expand Up @@ -330,6 +330,8 @@ def find_reverse_dependencies(name, content):

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"
Expand Down

0 comments on commit 31287d4

Please sign in to comment.