diff options
author | Jan Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-19 10:46:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-19 10:46:11 -0400 |
commit | d23dd6040fdba7b201e5f15d7027030d5259ef8e (patch) | |
tree | b0cb5929a3b27054b544719aee47ac2d830f1f1f /nailgun_launcher | |
parent | 12eb7649a929a42d376831e8b0d7b6f38ee0876b (diff) | |
parent | 665183a76d25d241fdd9df9e12b8008fb2c80cbe (diff) | |
download | cbt-d23dd6040fdba7b201e5f15d7027030d5259ef8e.tar.gz cbt-d23dd6040fdba7b201e5f15d7027030d5259ef8e.tar.bz2 cbt-d23dd6040fdba7b201e5f15d7027030d5259ef8e.zip |
Merge pull request #233 from cvogt/chris3
doc improvements (and minor change for maven hash casing)
Diffstat (limited to 'nailgun_launcher')
-rw-r--r-- | nailgun_launcher/Stage0Lib.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nailgun_launcher/Stage0Lib.java b/nailgun_launcher/Stage0Lib.java index bc6679e..11a9aab 100644 --- a/nailgun_launcher/Stage0Lib.java +++ b/nailgun_launcher/Stage0Lib.java @@ -166,7 +166,7 @@ public class Stage0Lib{ Files.copy(stream, unverified, StandardCopyOption.REPLACE_EXISTING); stream.close(); final String checksum = sha1(Files.readAllBytes(unverified)); - if(sha1 == null || sha1.toUpperCase().equals(checksum)) { + if(sha1 == null || sha1.toLowerCase().equals(checksum)) { Files.move(unverified, target, StandardCopyOption.REPLACE_EXISTING, StandardCopyOption.ATOMIC_MOVE); } else { System.err.println(target + " checksum does not match.\nExpected: |" + sha1 + "|\nFound: |" + checksum + "|"); @@ -178,7 +178,7 @@ public class Stage0Lib{ public static String sha1(byte[] bytes) throws Throwable { final MessageDigest sha1 = MessageDigest.getInstance("SHA1"); sha1.update(bytes, 0, bytes.length); - return (new HexBinaryAdapter()).marshal(sha1.digest()).toUpperCase(); + return (new HexBinaryAdapter()).marshal(sha1.digest()).toLowerCase(); } public static String join(String separator, String[] parts){ |