ripple-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject incubator-ripple git commit: Update jake archive to produce SHA-1 instead of SHA-512.
Date Mon, 17 Aug 2015 05:59:30 GMT
Repository: incubator-ripple
Updated Branches:
  refs/heads/master f8c6a0bc9 -> 2b78ce81e


Update jake archive to produce SHA-1 instead of SHA-512.

Also, includes tgz filename in sha1 and md5 files.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/2b78ce81
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/2b78ce81
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/2b78ce81

Branch: refs/heads/master
Commit: 2b78ce81e060345c032e9dfb3b1813364df0fb9a
Parents: f8c6a0b
Author: Tim Barham <tim.barham@microsoft.com>
Authored: Mon Aug 17 16:00:16 2015 +1000
Committer: Tim Barham <tim.barham@microsoft.com>
Committed: Mon Aug 17 16:00:16 2015 +1000

----------------------------------------------------------------------
 build/archive.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/2b78ce81/build/archive.js
----------------------------------------------------------------------
diff --git a/build/archive.js b/build/archive.js
index 0b439ec..097c611 100644
--- a/build/archive.js
+++ b/build/archive.js
@@ -201,7 +201,7 @@ function computeMd5Hash(filename, baton) {
 }
 
 function computeShaHash(filename, baton) {
-    computeHash(filename, 'sha', 'SHA512', baton);
+    computeHash(filename, 'sha1', 'SHA1', baton);
 }
 
 function computeHash(filename, ext, algo, baton) {
@@ -216,7 +216,8 @@ function computeHash(filename, ext, algo, baton) {
 }
 
 function extractHashFromOutput(output) {
-    return output.slice(output.lastIndexOf(':') + 1).replace(/\s*/g, '').toLowerCase();
+    var pos = output.lastIndexOf(':');
+    return output.slice(pos + 1).replace(/\s*/g, '').toLowerCase() + ' *' + path.basename(output.slice(0,
pos));
 }
 
 function exec(cmdLine, baton, callback) {


Mime
View raw message