Fix bug with git packages with no matching ebuild.

Change-Id: I45454c837807fbe6e5996b76087bbfe25d7155ce

Review URL: http://codereview.chromium.org/3171032
This commit is contained in:
Chris Sosa 2010-08-26 11:18:25 -07:00
parent e9b94eefd0
commit 5140c15674

View File

@ -199,9 +199,11 @@ def _ParseRevisionString(revision_string, repo_dictionary):
if len(revision_tuple) != 2: if len(revision_tuple) != 2:
print >> sys.stderr, 'Incorrectly formatted revision %s' % revision print >> sys.stderr, 'Incorrectly formatted revision %s' % revision
repo_name = revision_tuple[0].replace('.git', '') 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.
for package in repo_dictionary[repo_name]: if repo_dictionary.has_key(repo_name):
revisions[package] = revision_tuple[1] # 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() return revisions.items()