fixup! roomservice: Skip setting revision if it's the same as default
If the project remote starts with "aosp-", the revision already gets removed, causing a KeyError. Change-Id: Ie016f55d55f4cf64e66de529db9caca1de9b2e82
This commit is contained in:
committed by
Łukasz Patron
parent
caae07034a
commit
1c00116c6e
@@ -188,7 +188,7 @@ def add_to_manifest(repositories):
|
|||||||
project.attrib["remote"] = repo_remote
|
project.attrib["remote"] = repo_remote
|
||||||
project.attrib["clone-depth"] = "1"
|
project.attrib["clone-depth"] = "1"
|
||||||
del project.attrib["revision"]
|
del project.attrib["revision"]
|
||||||
if project.attrib["revision"] == get_default_revision():
|
if project.attrib.get("revision", None) == get_default_revision():
|
||||||
del project.attrib["revision"]
|
del project.attrib["revision"]
|
||||||
print("Adding dependency: %s -> %s" % (project.attrib["name"], project.attrib["path"]))
|
print("Adding dependency: %s -> %s" % (project.attrib["name"], project.attrib["path"]))
|
||||||
lm.append(project)
|
lm.append(project)
|
||||||
|
Reference in New Issue
Block a user