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.
This commit is contained in:
Fabio Erculiani
2009-03-26 12:53:57 +01:00
parent bccb1f97d2
commit 2083ff143f
+1 -1
View File
@@ -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