diff options
author | Gui Chen <gui.chen@intel.com> | 2014-06-08 23:11:19 -0400 |
---|---|---|
committer | admin <yuhuan.yang@samsung.com> | 2016-02-04 18:19:37 +0800 |
commit | d4694f05730aa0b322cfdcabf7a4f6092dbc8019 (patch) | |
tree | 2c29861e1aeb40336ea719e2af8c7b42d2c6abf1 | |
parent | 6337f280577b4fe48dd972aeff6ac1110d2bf816 (diff) | |
download | mic-d4694f05730aa0b322cfdcabf7a4f6092dbc8019.tar.gz mic-d4694f05730aa0b322cfdcabf7a4f6092dbc8019.tar.bz2 mic-d4694f05730aa0b322cfdcabf7a4f6092dbc8019.zip |
fix md5sum format able to check by 'md5sum -c'
use two spaces instead of ' *' as seprator in MD5SUM
Change-Id: I0f37c3366d9e0c44c82b74c78d49a9647ce477ad
Signed-off-by: Gui Chen <gui.chen@intel.com>
-rw-r--r-- | mic/imager/baseimager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mic/imager/baseimager.py b/mic/imager/baseimager.py index 43896bf..4e82571 100644 --- a/mic/imager/baseimager.py +++ b/mic/imager/baseimager.py @@ -1175,7 +1175,7 @@ class BaseImageCreator(object): md5sum = misc.get_md5sum(image_name) with open(image_name + ".md5sum", "w") as f: - f.write("%s %s" % (md5sum, os.path.basename(image_name))) + f.write("%s %s" % (md5sum, os.path.basename(image_name))) self.outimage.append(image_name+".md5sum") def package(self, destdir = "."): @@ -1314,7 +1314,7 @@ class BaseImageCreator(object): # There needs to be two spaces between the sum and # filepath to match the syntax with md5sum. # This way also md5sum -c MD5SUMS can be used by users - wf.write("%s *%s\n" % (md5sum, f)) + wf.write("%s %s\n" % (md5sum, f)) outimages.append("%s/MD5SUMS" % destdir) |