From fba28f19754f62b5227650143d5441fc86d4c7d7 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 25 Apr 2018 21:33:33 +0200 Subject: Revert "Update NSS to 3.35-RTM" This reverts commit f1a0f0a56fdd0fc39f255174ce08c06b91c66c94. --- .../nss/automation/taskcluster/graph/src/context_hash.js | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'security/nss/automation/taskcluster/graph/src/context_hash.js') diff --git a/security/nss/automation/taskcluster/graph/src/context_hash.js b/security/nss/automation/taskcluster/graph/src/context_hash.js index 0699a0590..f0a2e9a88 100644 --- a/security/nss/automation/taskcluster/graph/src/context_hash.js +++ b/security/nss/automation/taskcluster/graph/src/context_hash.js @@ -27,24 +27,14 @@ function collectFilesInDirectory(dir) { }); } -// A list of hashes for each file in the given path. -function collectFileHashes(context_path) { +// Compute a context hash for the given context path. +export default function (context_path) { let root = path.join(__dirname, "../../../.."); let dir = path.join(root, context_path); let files = collectFilesInDirectory(dir).sort(); - - return files.map(file => { + let hashes = files.map(file => { return sha256(file + "|" + fs.readFileSync(file, "utf-8")); }); -} - -// Compute a context hash for the given context path. -export default function (context_path) { - // Regenerate all images when the image_builder changes. - let hashes = collectFileHashes("automation/taskcluster/image_builder"); - - // Regenerate images when the image itself changes. - hashes = hashes.concat(collectFileHashes(context_path)); // Generate a new prefix every month to ensure the image stays buildable. let now = new Date(); -- cgit v1.2.3