Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 1 | # Copyright (C) 2021 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 15 | """Provide functionality to get all projects and their commit ids from Superproject. |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 16 | |
| 17 | For more information on superproject, check out: |
| 18 | https://en.wikibooks.org/wiki/Git/Submodules_and_Superprojects |
| 19 | |
| 20 | Examples: |
| 21 | superproject = Superproject() |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 22 | project_commit_ids = superproject.UpdateProjectsRevisionId(projects) |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 23 | """ |
| 24 | |
Raman Tenneti | ceba2dd | 2021-02-22 16:54:56 -0800 | [diff] [blame] | 25 | import hashlib |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 26 | import os |
| 27 | import sys |
| 28 | |
Raman Tenneti | e253b43 | 2021-06-02 10:05:54 -0700 | [diff] [blame] | 29 | from git_command import git_require, GitCommand |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 30 | from git_refs import R_HEADS |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 31 | |
Raman Tenneti | 8d43dea | 2021-02-07 16:30:27 -0800 | [diff] [blame] | 32 | _SUPERPROJECT_GIT_NAME = 'superproject.git' |
| 33 | _SUPERPROJECT_MANIFEST_NAME = 'superproject_override.xml' |
| 34 | |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 35 | |
| 36 | class Superproject(object): |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 37 | """Get commit ids from superproject. |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 38 | |
Raman Tenneti | ceba2dd | 2021-02-22 16:54:56 -0800 | [diff] [blame] | 39 | Initializes a local copy of a superproject for the manifest. This allows |
| 40 | lookup of commit ids for all projects. It contains _project_commit_ids which |
| 41 | is a dictionary with project/commit id entries. |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 42 | """ |
Raman Tenneti | ef99ec0 | 2021-03-04 10:29:40 -0800 | [diff] [blame] | 43 | def __init__(self, manifest, repodir, superproject_dir='exp-superproject', |
| 44 | quiet=False): |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 45 | """Initializes superproject. |
| 46 | |
| 47 | Args: |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 48 | manifest: A Manifest object that is to be written to a file. |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 49 | repodir: Path to the .repo/ dir for holding all internal checkout state. |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 50 | It must be in the top directory of the repo client checkout. |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 51 | superproject_dir: Relative path under |repodir| to checkout superproject. |
Raman Tenneti | ef99ec0 | 2021-03-04 10:29:40 -0800 | [diff] [blame] | 52 | quiet: If True then only print the progress messages. |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 53 | """ |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 54 | self._project_commit_ids = None |
| 55 | self._manifest = manifest |
Raman Tenneti | ef99ec0 | 2021-03-04 10:29:40 -0800 | [diff] [blame] | 56 | self._quiet = quiet |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 57 | self._branch = self._GetBranch() |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 58 | self._repodir = os.path.abspath(repodir) |
| 59 | self._superproject_dir = superproject_dir |
| 60 | self._superproject_path = os.path.join(self._repodir, superproject_dir) |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 61 | self._manifest_path = os.path.join(self._superproject_path, |
Raman Tenneti | 8d43dea | 2021-02-07 16:30:27 -0800 | [diff] [blame] | 62 | _SUPERPROJECT_MANIFEST_NAME) |
Raman Tenneti | ceba2dd | 2021-02-22 16:54:56 -0800 | [diff] [blame] | 63 | git_name = '' |
| 64 | if self._manifest.superproject: |
| 65 | remote_name = self._manifest.superproject['remote'].name |
| 66 | git_name = hashlib.md5(remote_name.encode('utf8')).hexdigest() + '-' |
| 67 | self._work_git_name = git_name + _SUPERPROJECT_GIT_NAME |
| 68 | self._work_git = os.path.join(self._superproject_path, self._work_git_name) |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 69 | |
| 70 | @property |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 71 | def project_commit_ids(self): |
| 72 | """Returns a dictionary of projects and their commit ids.""" |
| 73 | return self._project_commit_ids |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 74 | |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 75 | def _GetBranch(self): |
| 76 | """Returns the branch name for getting the approved manifest.""" |
| 77 | p = self._manifest.manifestProject |
| 78 | b = p.GetBranch(p.CurrentBranch) |
| 79 | if not b: |
| 80 | return None |
| 81 | branch = b.merge |
| 82 | if branch and branch.startswith(R_HEADS): |
| 83 | branch = branch[len(R_HEADS):] |
| 84 | return branch |
| 85 | |
Raman Tenneti | ceba2dd | 2021-02-22 16:54:56 -0800 | [diff] [blame] | 86 | def _Init(self): |
| 87 | """Sets up a local Git repository to get a copy of a superproject. |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 88 | |
| 89 | Returns: |
Raman Tenneti | ceba2dd | 2021-02-22 16:54:56 -0800 | [diff] [blame] | 90 | True if initialization is successful, or False. |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 91 | """ |
Raman Tenneti | 8d43dea | 2021-02-07 16:30:27 -0800 | [diff] [blame] | 92 | if not os.path.exists(self._superproject_path): |
| 93 | os.mkdir(self._superproject_path) |
Raman Tenneti | ef99ec0 | 2021-03-04 10:29:40 -0800 | [diff] [blame] | 94 | if not self._quiet and not os.path.exists(self._work_git): |
| 95 | print('%s: Performing initial setup for superproject; this might take ' |
| 96 | 'several minutes.' % self._work_git) |
Raman Tenneti | ceba2dd | 2021-02-22 16:54:56 -0800 | [diff] [blame] | 97 | cmd = ['init', '--bare', self._work_git_name] |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 98 | p = GitCommand(None, |
| 99 | cmd, |
| 100 | cwd=self._superproject_path, |
| 101 | capture_stdout=True, |
| 102 | capture_stderr=True) |
| 103 | retval = p.Wait() |
| 104 | if retval: |
Raman Tenneti | ceba2dd | 2021-02-22 16:54:56 -0800 | [diff] [blame] | 105 | print('repo: error: git init call failed with return code: %r, stderr: %r' % |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 106 | (retval, p.stderr), file=sys.stderr) |
| 107 | return False |
| 108 | return True |
| 109 | |
Raman Tenneti | ceba2dd | 2021-02-22 16:54:56 -0800 | [diff] [blame] | 110 | def _Fetch(self, url): |
| 111 | """Fetches a local copy of a superproject for the manifest based on url. |
| 112 | |
| 113 | Args: |
| 114 | url: superproject's url. |
Raman Tenneti | 9e78753 | 2021-02-01 11:47:06 -0800 | [diff] [blame] | 115 | |
| 116 | Returns: |
Raman Tenneti | ceba2dd | 2021-02-22 16:54:56 -0800 | [diff] [blame] | 117 | True if fetch is successful, or False. |
Raman Tenneti | 9e78753 | 2021-02-01 11:47:06 -0800 | [diff] [blame] | 118 | """ |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 119 | if not os.path.exists(self._work_git): |
Raman Tenneti | 8d43dea | 2021-02-07 16:30:27 -0800 | [diff] [blame] | 120 | print('git fetch missing drectory: %s' % self._work_git, |
| 121 | file=sys.stderr) |
| 122 | return False |
Raman Tenneti | e253b43 | 2021-06-02 10:05:54 -0700 | [diff] [blame] | 123 | if not git_require((2, 28, 0)): |
| 124 | print('superproject requires a git version 2.28 or later', file=sys.stderr) |
| 125 | return False |
Raman Tenneti | 8367096 | 2021-03-19 13:53:43 -0700 | [diff] [blame] | 126 | cmd = ['fetch', url, '--depth', '1', '--force', '--no-tags', '--filter', 'blob:none'] |
Raman Tenneti | ceba2dd | 2021-02-22 16:54:56 -0800 | [diff] [blame] | 127 | if self._branch: |
| 128 | cmd += [self._branch + ':' + self._branch] |
Raman Tenneti | 9e78753 | 2021-02-01 11:47:06 -0800 | [diff] [blame] | 129 | p = GitCommand(None, |
| 130 | cmd, |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 131 | cwd=self._work_git, |
Raman Tenneti | 9e78753 | 2021-02-01 11:47:06 -0800 | [diff] [blame] | 132 | capture_stdout=True, |
| 133 | capture_stderr=True) |
| 134 | retval = p.Wait() |
| 135 | if retval: |
Raman Tenneti | 8d43dea | 2021-02-07 16:30:27 -0800 | [diff] [blame] | 136 | print('repo: error: git fetch call failed with return code: %r, stderr: %r' % |
Raman Tenneti | 9e78753 | 2021-02-01 11:47:06 -0800 | [diff] [blame] | 137 | (retval, p.stderr), file=sys.stderr) |
| 138 | return False |
| 139 | return True |
| 140 | |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 141 | def _LsTree(self): |
Raman Tenneti | ceba2dd | 2021-02-22 16:54:56 -0800 | [diff] [blame] | 142 | """Gets the commit ids for all projects. |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 143 | |
| 144 | Works only in git repositories. |
| 145 | |
| 146 | Returns: |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 147 | data: data returned from 'git ls-tree ...' instead of None. |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 148 | """ |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 149 | if not os.path.exists(self._work_git): |
Raman Tenneti | 8d43dea | 2021-02-07 16:30:27 -0800 | [diff] [blame] | 150 | print('git ls-tree missing drectory: %s' % self._work_git, |
| 151 | file=sys.stderr) |
| 152 | return None |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 153 | data = None |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 154 | branch = 'HEAD' if not self._branch else self._branch |
Raman Tenneti | ce64e3d | 2021-02-08 13:27:41 -0800 | [diff] [blame] | 155 | cmd = ['ls-tree', '-z', '-r', branch] |
| 156 | |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 157 | p = GitCommand(None, |
| 158 | cmd, |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 159 | cwd=self._work_git, |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 160 | capture_stdout=True, |
| 161 | capture_stderr=True) |
| 162 | retval = p.Wait() |
| 163 | if retval == 0: |
| 164 | data = p.stdout |
| 165 | else: |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 166 | print('repo: error: git ls-tree call failed with return code: %r, stderr: %r' % ( |
| 167 | retval, p.stderr), file=sys.stderr) |
| 168 | return data |
| 169 | |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 170 | def Sync(self): |
Raman Tenneti | ceba2dd | 2021-02-22 16:54:56 -0800 | [diff] [blame] | 171 | """Gets a local copy of a superproject for the manifest. |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 172 | |
| 173 | Returns: |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 174 | True if sync of superproject is successful, or False. |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 175 | """ |
Raman Tenneti | 2b37fa3 | 2021-06-02 17:46:25 -0700 | [diff] [blame] | 176 | print('NOTICE: --use-superproject is in beta; report any issues to the ' |
| 177 | 'address described in `repo version`', file=sys.stderr) |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 178 | |
| 179 | if not self._manifest.superproject: |
| 180 | print('error: superproject tag is not defined in manifest', |
| 181 | file=sys.stderr) |
| 182 | return False |
| 183 | |
| 184 | url = self._manifest.superproject['remote'].url |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 185 | if not url: |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 186 | print('error: superproject URL is not defined in manifest', |
| 187 | file=sys.stderr) |
| 188 | return False |
Raman Tenneti | 8d43dea | 2021-02-07 16:30:27 -0800 | [diff] [blame] | 189 | |
Raman Tenneti | ceba2dd | 2021-02-22 16:54:56 -0800 | [diff] [blame] | 190 | if not self._Init(): |
| 191 | return False |
| 192 | if not self._Fetch(url): |
| 193 | return False |
Raman Tenneti | ef99ec0 | 2021-03-04 10:29:40 -0800 | [diff] [blame] | 194 | if not self._quiet: |
| 195 | print('%s: Initial setup for superproject completed.' % self._work_git) |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 196 | return True |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 197 | |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 198 | def _GetAllProjectsCommitIds(self): |
| 199 | """Get commit ids for all projects from superproject and save them in _project_commit_ids. |
| 200 | |
| 201 | Returns: |
| 202 | A dictionary with the projects/commit ids on success, otherwise None. |
| 203 | """ |
| 204 | if not self.Sync(): |
| 205 | return None |
| 206 | |
| 207 | data = self._LsTree() |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 208 | if not data: |
Raman Tenneti | ceba2dd | 2021-02-22 16:54:56 -0800 | [diff] [blame] | 209 | print('error: git ls-tree failed to return data for superproject', |
| 210 | file=sys.stderr) |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 211 | return None |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 212 | |
| 213 | # Parse lines like the following to select lines starting with '160000' and |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 214 | # build a dictionary with project path (last element) and its commit id (3rd element). |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 215 | # |
| 216 | # 160000 commit 2c2724cb36cd5a9cec6c852c681efc3b7c6b86ea\tart\x00 |
| 217 | # 120000 blob acc2cbdf438f9d2141f0ae424cec1d8fc4b5d97f\tbootstrap.bash\x00 |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 218 | commit_ids = {} |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 219 | for line in data.split('\x00'): |
| 220 | ls_data = line.split(None, 3) |
| 221 | if not ls_data: |
| 222 | break |
| 223 | if ls_data[0] == '160000': |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 224 | commit_ids[ls_data[3]] = ls_data[2] |
Raman Tenneti | 6a872c9 | 2021-01-14 19:17:50 -0800 | [diff] [blame] | 225 | |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 226 | self._project_commit_ids = commit_ids |
| 227 | return commit_ids |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 228 | |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 229 | def _WriteManfiestFile(self): |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 230 | """Writes manifest to a file. |
| 231 | |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 232 | Returns: |
| 233 | manifest_path: Path name of the file into which manifest is written instead of None. |
| 234 | """ |
| 235 | if not os.path.exists(self._superproject_path): |
| 236 | print('error: missing superproject directory %s' % |
| 237 | self._superproject_path, |
| 238 | file=sys.stderr) |
| 239 | return None |
Raman Tenneti | 080877e | 2021-03-09 15:19:06 -0800 | [diff] [blame] | 240 | manifest_str = self._manifest.ToXml(groups=self._manifest.GetGroupsStr()).toxml() |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 241 | manifest_path = self._manifest_path |
| 242 | try: |
| 243 | with open(manifest_path, 'w', encoding='utf-8') as fp: |
| 244 | fp.write(manifest_str) |
| 245 | except IOError as e: |
| 246 | print('error: cannot write manifest to %s:\n%s' |
| 247 | % (manifest_path, e), |
| 248 | file=sys.stderr) |
| 249 | return None |
| 250 | return manifest_path |
| 251 | |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 252 | def UpdateProjectsRevisionId(self, projects): |
| 253 | """Update revisionId of every project in projects with the commit id. |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 254 | |
| 255 | Args: |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 256 | projects: List of projects whose revisionId needs to be updated. |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 257 | |
| 258 | Returns: |
| 259 | manifest_path: Path name of the overriding manfiest file instead of None. |
| 260 | """ |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 261 | commit_ids = self._GetAllProjectsCommitIds() |
| 262 | if not commit_ids: |
| 263 | print('error: Cannot get project commit ids from manifest', file=sys.stderr) |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 264 | return None |
| 265 | |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 266 | projects_missing_commit_ids = [] |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 267 | for project in projects: |
| 268 | path = project.relpath |
| 269 | if not path: |
| 270 | continue |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 271 | commit_id = commit_ids.get(path) |
| 272 | if commit_id: |
| 273 | project.SetRevisionId(commit_id) |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 274 | else: |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 275 | projects_missing_commit_ids.append(path) |
| 276 | if projects_missing_commit_ids: |
| 277 | print('error: please file a bug using %s to report missing commit_ids for: %s' % |
Raman Tenneti | 993af5e | 2021-05-12 12:00:31 -0700 | [diff] [blame] | 278 | (self._manifest.contactinfo.bugurl, projects_missing_commit_ids), file=sys.stderr) |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 279 | return None |
| 280 | |
Raman Tenneti | 21dce3d | 2021-02-09 00:26:31 -0800 | [diff] [blame] | 281 | manifest_path = self._WriteManfiestFile() |
Raman Tenneti | 1fd7bc2 | 2021-02-04 14:39:38 -0800 | [diff] [blame] | 282 | return manifest_path |