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

Commit af599150 authored by Koushik Dutta's avatar Koushik Dutta
Browse files

Merge branch 'ics' of git://github.com/CyanogenMod/android_build into ics

parents 88e7225d 37b52e72
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -60,6 +60,17 @@ def get_from_manifest(devicename):
        if re.search("android_device_.*_%s$" % device, localpath.get("name")):
            return localpath.get("path")

    # Devices originally from AOSP are in the main manifest...
    try:
        mm = ElementTree.parse(".repo/manifest.xml")
        mm = mm.getroot()
    except:
        mm = ElementTree.Element("manifest")

    for localpath in mm.findall("project"):
        if re.search("android_device_.*_%s$" % device, localpath.get("name")):
            return localpath.get("path")

    return None

def is_in_manifest(projectname):