Skip to content
Snippets Groups Projects
Commit 8103680c authored by Simon McVittie's avatar Simon McVittie
Browse files

CI: Don't do final upload commands with --dry-run

parent f72dda94
No related branches found
No related tags found
1 merge request!330Draft: CI: Upload detached debug symbols
...@@ -352,17 +352,18 @@ class Uploader: ...@@ -352,17 +352,18 @@ class Uploader:
logger.info('%r', argv) logger.info('%r', argv)
subprocess.check_call(argv) subprocess.check_call(argv)
# Check that our rsync options didn't optimize away a change that if not self.dry_run:
# should have happened # Check that our rsync options didn't optimize away a change that
with open(str(upload / 'SHA256SUMS')) as reader: # should have happened
self.check_call([ with open(str(upload / 'SHA256SUMS')) as reader:
'env', '--chdir', '{}'.format(version), self.check_call([
'sha256sum', '--strict', '--quiet', '-c', 'env', '--chdir', '{}'.format(version),
], stdin=reader) 'sha256sum', '--strict', '--quiet', '-c',
], stdin=reader)
self.check_call([ self.check_call([
'ln', '-fns', version, 'latest', 'ln', '-fns', version, 'latest',
]) ])
def main() -> None: def main() -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment