From 31287d4d9094c424bc89cb0024b381bb1ac336e5 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 14 Feb 2017 23:55:20 +0100 Subject: [PATCH] =?UTF-8?q?tidy:=20Ignore=20[replace]=E2=80=99d=20packages?= =?UTF-8?q?=20in=20the=20duplicate=20package=20lint.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/tidy/servo_tidy/tidy.py | 2 ++ 1 file changed, 2 insertions(+) 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"