Skip to content

Commit

Permalink
Merge pull request #392 from mj1856/tzversion
Browse files Browse the repository at this point in the history
Fix version number for latest tzdata
  • Loading branch information
mattjohnsonpint committed Oct 6, 2016
2 parents 060ea59 + 8c3ef65 commit 2243199
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/data-dedupe.js
Expand Up @@ -26,12 +26,12 @@ function dedupe(zone) {
}

function findVersion (source) {
var matches = source.match(/\nVERSION=\s+(\d{4}[a-z])/);
var matches = source.match(/\nRelease (\d{4}[a-z]) /);

if (matches && matches[1]) {
return matches[1];
}
throw new Error("Could not find version from temp/download/latest/Makefile. It should look something like this.\n\nVERSION= 2014e");
throw new Error("Could not find version from temp/download/latest/NEWS.");
}

module.exports = function (grunt) {
Expand All @@ -46,7 +46,7 @@ module.exports = function (grunt) {
};

if (version === 'latest') {
output.version = findVersion(grunt.file.read('temp/download/latest/Makefile'));
output.version = findVersion(grunt.file.read('temp/download/latest/NEWS'));
}

grunt.file.mkdir('data/unpacked');
Expand Down

0 comments on commit 2243199

Please sign in to comment.