mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
tidy: Ignore [replace]’d packages in the duplicate package lint.
This commit is contained in:
parent
5a624ff956
commit
31287d4d90
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue