From c7dc24c89e68a2b68c43022c07760c923203f3c2 Mon Sep 17 00:00:00 2001 From: Mandeep Singh Baines Date: Mon, 9 May 2011 12:47:45 -0700 Subject: [PATCH] loman: work with new gerrit workflow Fix to handle new repository naming. Instead name="kernel", the kernel is now name="chromiumos/third_party/kernel". BUG=15076 TEST=Ran unittests and verified that local_manifest.xml got created correctly when working on the kernel for the first time. Change-Id: Ib0eef7ecb0522c3b5bcc111d0f30467c8ca19ec5 Reviewed-on: http://gerrit.chromium.org/gerrit/546 Reviewed-by: Chris Sosa Tested-by: Mandeep Singh Baines --- bin/loman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/loman.py b/bin/loman.py index c52a5b3d8c..474285e751 100755 --- a/bin/loman.py +++ b/bin/loman.py @@ -77,7 +77,7 @@ class LocalManifest: """ for project in self._root.findall('project'): - if project.attrib['name'] == name: + if project.attrib['name'].split('/')[-1] == name: return project return None