From: Gui Chen Date: Mon, 9 Jun 2014 03:11:19 +0000 (-0400) Subject: fix md5sum format able to check by 'md5sum -c' X-Git-Tag: 0.24.2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58d7731403e551e9c5fb7660f73ef40ee81319db;p=tools%2Fmic.git 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 --- diff --git a/mic/imager/baseimager.py b/mic/imager/baseimager.py index 2d2fc00..f6828f2 100644 --- a/mic/imager/baseimager.py +++ b/mic/imager/baseimager.py @@ -1169,7 +1169,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 = "."): @@ -1308,7 +1308,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)