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:
logger.info('%r', argv)
subprocess.check_call(argv)
# Check that our rsync options didn't optimize away a change that
# should have happened
with open(str(upload / 'SHA256SUMS')) as reader:
self.check_call([
'env', '--chdir', '{}'.format(version),
'sha256sum', '--strict', '--quiet', '-c',
], stdin=reader)
if not self.dry_run:
# Check that our rsync options didn't optimize away a change that
# should have happened
with open(str(upload / 'SHA256SUMS')) as reader:
self.check_call([
'env', '--chdir', '{}'.format(version),
'sha256sum', '--strict', '--quiet', '-c',
], stdin=reader)
self.check_call([
'ln', '-fns', version, 'latest',
])
self.check_call([
'ln', '-fns', version, 'latest',
])
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