diff options
-rw-r--r-- | llvm_tools/manifest_utils.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm_tools/manifest_utils.py b/llvm_tools/manifest_utils.py index bae35838..83d0ca9d 100644 --- a/llvm_tools/manifest_utils.py +++ b/llvm_tools/manifest_utils.py @@ -31,7 +31,7 @@ class UpdateManifestError(Exception): pass -def update_chromeos_manifest(revision: str, src_tree: Path): +def update_chromeos_manifest(revision: str, src_tree: Path) -> Path: """Replaces the manifest project revision with 'revision'. Notably, this function reformats the manifest file to preserve @@ -41,6 +41,9 @@ def update_chromeos_manifest(revision: str, src_tree: Path): revision: Revision (git sha) to use in the manifest. src_tree: Path to the root of the source tree checkout. + Returns: + The manifest path. + Post: The llvm-project revision info in the chromeos repo manifest is updated with 'revision'. @@ -58,6 +61,7 @@ def update_chromeos_manifest(revision: str, src_tree: Path): with atomic_write_file.atomic_write(manifest_path, mode="wb") as f: xmltree.write(f, encoding="UTF-8") format_manifest(manifest_path) + return manifest_path def get_chromeos_manifest_path(src_tree: Path) -> Path: |