mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Account for changes to Cargo.lock format.
This commit is contained in:
parent
b225b2bedb
commit
b8e44e14b2
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ def check_flake8(file_name, contents):
|
|||
|
||||
def check_lock(file_name, contents):
|
||||
def find_reverse_dependencies(name, content):
|
||||
for package in itertools.chain([content["root"]], content["package"]):
|
||||
for package in itertools.chain([content.get("root", [])], content["package"]):
|
||||
for dependency in package.get("dependencies", []):
|
||||
if dependency.startswith("{} ".format(name)):
|
||||
yield package["name"], dependency
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue