1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02:00

code review last commit re. #602

External filter lists are not meant to appear in checksums.txt.
This commit is contained in:
gorhill 2015-08-25 11:21:35 -04:00
parent 8f01f7309e
commit 57a7f6bcd7

View File

@ -433,7 +433,7 @@ var getRepoMetadata = function(callback) {
return '';
}
// https://github.com/gorhill/uBlock/issues/602
// Need to convert old asset entries to new asset entries.
// External filter lists are not meant to appear in checksums.txt.
// TODO: remove this code once v1.1.0.0 is everywhere.
var out = [];
var listMap = µBlock.oldListToNewListMap;
@ -446,10 +446,9 @@ var getRepoMetadata = function(callback) {
continue;
}
if ( listMap.hasOwnProperty(matches[2]) ) {
out.push(matches[1] + ' ' + listMap[matches[2]]);
} else {
out.push(line);
continue;
}
out.push(line);
}
return out.join('\n');
};