Skip to content

Commit

Permalink
Fix checksum error with bytes < 0x10.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed Nov 9, 2010
1 parent 3f8a01a commit 2bad47b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/build/ChecksumPlugin.scala
Expand Up @@ -59,7 +59,7 @@ trait ChecksumPlugin extends BasicManagedProject with GpgPlugin {
// this updates the associated digest
}
val data = dis.getMessageDigest.digest
val checksum = data map (x => Integer.toHexString(x & 0xff)) mkString
val checksum = data map (x => "%02x".format(x)) mkString

val outfile = path+"."+ext
log.info("Writing checksum to "+outfile)
Expand Down

0 comments on commit 2bad47b

Please sign in to comment.