Unverified Commit e5969e2d authored by Michael Bestas's avatar Michael Bestas
Browse files

roomservice: Search for repos in lineage snippet too

Change-Id: Id544d4bce731b14dbc7656382163d4657c347b83
parent 21b9d391
......@@ -140,7 +140,7 @@ def is_in_manifest(projectpath):
if localpath.get("path") == projectpath:
return True
## Search in main manifest, too
# Search in main manifest, too
try:
lm = ElementTree.parse(".repo/manifest.xml")
lm = lm.getroot()
......@@ -151,6 +151,17 @@ def is_in_manifest(projectpath):
if localpath.get("path") == projectpath:
return True
# ... and don't forget the lineage snippet
try:
lm = ElementTree.parse(".repo/manifests/snippets/cm.xml")
lm = lm.getroot()
except:
lm = ElementTree.Element("manifest")
for localpath in lm.findall("project"):
if localpath.get("path") == projectpath:
return True
return False
def add_to_manifest(repositories, fallback_branch = None):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment