diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-09-28 23:23:23 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-09-28 23:23:23 +0000 |
commit | 7387038c46b268285c98e68fbf741fc2c0cb9e67 (patch) | |
tree | 8f26ff335d180a6a5070cd0f348322205bf6472f | |
parent | 6ebed75ea97c61033d14e7aa99b4b39ead749e18 (diff) | |
parent | 4123f306f792142e148708b99e0d6484e05d3a92 (diff) | |
download | repohooks-android14-d2-s1-release.tar.gz |
Snap for 10877629 from 4123f306f792142e148708b99e0d6484e05d3a92 to udc-d2-releaseandroid-14.0.0_r45android-14.0.0_r44android-14.0.0_r43android-14.0.0_r42android-14.0.0_r41android-14.0.0_r40android-14.0.0_r39android-14.0.0_r38android14-d2-s5-releaseandroid14-d2-s4-releaseandroid14-d2-s3-releaseandroid14-d2-s2-releaseandroid14-d2-s1-releaseandroid14-d2-release
Change-Id: If9344302f7b474054f19efe5e5739933b506fdb1
-rwxr-xr-x | pre-upload.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pre-upload.py b/pre-upload.py index 3eece2d..18bf11f 100755 --- a/pre-upload.py +++ b/pre-upload.py @@ -359,8 +359,7 @@ def _run_project_hooks_in_cwd( config = _get_project_config(from_git) except rh.config.ValidationError as e: output.error('Loading config files', str(e)) - ret.internal_failure = True - return ret + return ret._replace(internal_failure=True) # If the repo has no pre-upload hooks enabled, then just return. hooks = list(config.callable_hooks()) @@ -374,8 +373,7 @@ def _run_project_hooks_in_cwd( except rh.utils.CalledProcessError as e: output.error('Upstream remote/tracking branch lookup', f'{e}\nDid you run repo start? Is your HEAD detached?') - ret.internal_failure = True - return ret + return ret._replace(internal_failure=True) project = rh.Project(name=project_name, dir=proj_dir) rel_proj_dir = os.path.relpath(proj_dir, rh.git.find_repo_root()) |