Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67b4b4d5 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

roomservice: When validating the presence of a repo, check main manifest too

Change-Id: If680536484074b473458723d93e783d074d7f669
parent 379c0fec
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -146,6 +146,17 @@ def is_in_manifest(projectname):
        if localpath.get("name") == projectname:
            return 1

    ## Search in main manifest, too
    try:
        lm = ElementTree.parse(".repo/manifest.xml")
        lm = lm.getroot()
    except:
        lm = ElementTree.Element("manifest")

    for localpath in lm.findall("project"):
        if localpath.get("name") == projectname:
            return 1

    return None

def add_to_manifest(repositories, fallback_branch = None):