Skip to content

Commit a4d04fd

Browse files
committed
Builder.py: reverse the order of filename/checksum
GNU md5sum and sha1sum output the checksum and then the filename. Hence, the Perl MTT client expects the data in that order. Signed-off-by: Jeff Squyres <[email protected]>
1 parent d36fb5e commit a4d04fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nightly-tarball/Builder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#
22
# Copyright (c) 2017 Amazon.com, Inc. or its affiliates. All Rights
33
# Reserved.
4+
# Copyright (c) 2081 Cisco Systems, Inc. All rights reserved.
45
#
56
# Additional copyrights may follow
67
#
@@ -675,8 +676,8 @@ def remote_cleanup(self, build_history):
675676
continue
676677
for filename in build_history[build]['files'].keys():
677678
filedata = build_history[build]['files'][filename]
678-
md5sum_string += '%s %s\n' % (filename, filedata['md5'])
679-
sha1sum_string += '%s %s\n' % (filename, filedata['sha1'])
679+
md5sum_string += '%s %s\n' % (filedata['md5'], filename)
680+
sha1sum_string += '%s %s\n' % (filedata['sha1'], filename)
680681
output_base = self._config['branches'][branch_name]['output_location']
681682
self._filer.upload_from_stream(os.path.join(output_base, 'md5sums.txt'),
682683
md5sum_string)

0 commit comments

Comments
 (0)