From 5140c15674dc908f83c07f15aa201868f1add3e1 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Thu, 26 Aug 2010 11:18:25 -0700 Subject: [PATCH] Fix bug with git packages with no matching ebuild. Change-Id: I45454c837807fbe6e5996b76087bbfe25d7155ce Review URL: http://codereview.chromium.org/3171032 --- bin/cbuildbot.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/cbuildbot.py b/bin/cbuildbot.py index aa3a1d851b..685443db7e 100755 --- a/bin/cbuildbot.py +++ b/bin/cbuildbot.py @@ -199,9 +199,11 @@ 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) - for package in repo_dictionary[repo_name]: - revisions[package] = revision_tuple[1] + # 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()