mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
rustfmt
This commit is contained in:
parent
644addd159
commit
f1b10393c2
10 changed files with 67 additions and 48 deletions
|
@ -371,6 +371,10 @@ def check_lock(file_name, contents):
|
|||
source = "crates.io"
|
||||
packages_by_name.setdefault(package["name"], []).append((package["version"], source))
|
||||
|
||||
for name in exceptions:
|
||||
if name not in packages_by_name:
|
||||
yield (1, "duplicates are allowed for `{}` but it is not a dependency".format(name))
|
||||
|
||||
for (name, packages) in packages_by_name.iteritems():
|
||||
has_duplicates = len(packages) > 1
|
||||
duplicates_allowed = name in exceptions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue