mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 15:11:19 +02:00
Fix bug with git packages with no matching ebuild.
Change-Id: I45454c837807fbe6e5996b76087bbfe25d7155ce Review URL: http://codereview.chromium.org/3171032
This commit is contained in:
parent
e9b94eefd0
commit
5140c15674
@ -199,7 +199,9 @@ def _ParseRevisionString(revision_string, repo_dictionary):
|
||||
if len(revision_tuple) != 2:
|
||||
print >> sys.stderr, 'Incorrectly formatted revision %s' % revision
|
||||
repo_name = revision_tuple[0].replace('.git', '')
|
||||
# May be many corresponding packages to a given git repo e.g. kernel)
|
||||
# Might not have entry if no matching ebuild.
|
||||
if repo_dictionary.has_key(repo_name):
|
||||
# May be many corresponding packages to a given git repo e.g. kernel).
|
||||
for package in repo_dictionary[repo_name]:
|
||||
revisions[package] = revision_tuple[1]
|
||||
return revisions.items()
|
||||
|
Loading…
x
Reference in New Issue
Block a user