Fix autoroller to skip entries without @revision in them

The problem started with https://chromium-review.googlesource.com/1407489

No-Try: True
Bug: None
Change-Id: Iaa8b6f0101404890ac44cca559168279807c94c8
Reviewed-on: https://webrtc-review.googlesource.com/c/121620
Reviewed-by: Artem Titarenko <artit@webrtc.org>
Commit-Queue: Oleh Prypin <oprypin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26568}
This commit is contained in:
Oleh Prypin
2019-02-06 10:06:12 +01:00
committed by Commit Bot
parent 6cfb403791
commit 4092d6fb05

View File

@ -247,6 +247,8 @@ def BuildDepsentryDict(deps_dict):
if dep.get('dep_type') == 'cipd':
result[path] = CipdDepsEntry(path, dep['packages'])
else:
if '@' not in dep['url']:
continue
url, revision = dep['url'].split('@')
result[path] = DepsEntry(path, url, revision)