def METHOD_NAME(ddl):
    """
    Return a DDL with the build fixed
    """
    ddl_json = json.loads(ddl)
    if 'build1' in ddl_json["build"]:
        # Build is correct
        return ddl
    index = 1
    new_build = {}
    for build in ddl_json["build"]:
        dic = {}
        # Get url
        if "url*previous" in build:
            dic["url"] = build["url*previous"]
        elif "url*previous*" in build:
            dic["url"] = build["url*previous*"]
        elif "url" in build:
            dic["url"] = build["url"]
        # Get construct
        if "build_type" in build:
            if build["build_type"] == "cmake":
                # Can't convert cmake yet
                return ddl
            if "flags" in build:
                dic["construct"] = "{} {} -C {}".format(build["build_type"],build["flags"],build["srcdir"])
            else:
                dic["construct"] = "{} -C {}".format(build["build_type"], build["srcdir"])
        # Get files to move
        binaries = []
        if "binaries" in build:
            for binary in build["binaries"]:
                binaries.append(os.path.normpath(os.path.join(build["srcdir"], "/".join(binary))))
        scripts = []
        if "scripts" in build:
            for script in build["scripts"]:
                scripts.append(os.path.normpath(os.path.join(build["srcdir"],"/".join(script))))
        if len(binaries+scripts) > 0:
            dic["move"] = ", ".join(binaries + scripts)
        str = "build{}".format(index)
        new_build[str] = dic
        index += 1
        ddl_json["build"] = new_build
    return json.dumps(ddl_json, indent=4, separators=(',', ': '))