From ae1802a2877fd3ee1ef0fa85af6b9aafe3961920 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 26 Mar 2009 12:53:57 +0100 Subject: [PATCH] fix .md5 creation After mkisofs, md5sum is run and .md5 file is produced. The latter was created incorrectly, first is the checksum, then the filename, not vice versa. --- molecule/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/molecule/handlers.py b/molecule/handlers.py index 9e43b46..a3e002b 100644 --- a/molecule/handlers.py +++ b/molecule/handlers.py @@ -523,7 +523,7 @@ class IsoHandler(GenericHandlerInterface): digest = molecule.utils.md5sum(self.dest_iso) md5file = self.dest_iso+".md5" with open(md5file,"w") as f: - f.write("%s %s\n" % (os.path.basename(self.dest_iso),digest,)) + f.write("%s %s\n" % (digest,os.path.basename(self.dest_iso),)) f.flush() return 0