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:
Patrick Gaskin
2025-01-23 00:13:53 -05:00
committed by Łukasz Patron
parent caae07034a
commit 1c00116c6e

View File

@@ -188,7 +188,7 @@ def add_to_manifest(repositories):
project.attrib["remote"] = repo_remote
project.attrib["clone-depth"] = "1"
del project.attrib["revision"]
if project.attrib["revision"] == get_default_revision():
if project.attrib.get("revision", None) == get_default_revision():
del project.attrib["revision"]
print("Adding dependency: %s -> %s" % (project.attrib["name"], project.attrib["path"]))
lm.append(project)