mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix tidy check when no duplicate versions present.
This commit is contained in:
parent
5c0d7998bd
commit
64df2c2d60
1 changed files with 2 additions and 1 deletions
|
@ -393,7 +393,8 @@ def check_lock(file_name, contents):
|
|||
message += "\n\t\033[93mThe following packages depend on version {} from '{}':\033[0m" \
|
||||
.format(version, short_source)
|
||||
for pname, package_version, dependency in packages_dependencies:
|
||||
if version in dependency[1] and (not dependency[2] or short_source in dependency[2]):
|
||||
if (not dependency[1] or version in dependency[1]) and \
|
||||
(not dependency[2] or short_source in dependency[2]):
|
||||
message += "\n\t\t" + pname + " " + package_version
|
||||
yield (1, message)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue