Revision 1f9ccef9
Added by koszko about 1 year ago
html/install.js | ||
---|---|---|
50 | 50 |
#FROM common/entities.js IMPORT item_id_string, version_string, get_files |
51 | 51 |
#FROM common/misc.js IMPORT sha256_async AS compute_sha256 |
52 | 52 |
#FROM common/jsonschema.js IMPORT haketilo_validator, haketilo_schemas |
53 |
#FROM common/entities.js IMPORT haketilo_schema_name_regex
|
|
53 |
#FROM common/entities.js IMPORT parse_schema_uri
|
|
54 | 54 |
|
55 | 55 |
#FROM html/repo_query_cacher_client.js IMPORT indirect_fetch |
56 | 56 |
|
... | ... | |
208 | 208 |
`${captype} ${item_id_string(id, ver)} was served using a nonconforming response format.`; |
209 | 209 |
|
210 | 210 |
try { |
211 |
const match = haketilo_schema_name_regex.exec(json.$schema);
|
|
212 |
var major_schema_version = match.groups.major;
|
|
211 |
const parsed = parse_schema_uri(json.$schema);
|
|
212 |
var major_schema_version = parsed.major;
|
|
213 | 213 |
|
214 | 214 |
if (!["1", "2"].includes(major_schema_version)) { |
215 | 215 |
const msg = `${captype} ${item_id_string(id, ver)} was served using unsupported Hydrilla API version. You might need to update Haketilo.`; |
Also available in: Unified diff
restore compatibility with IceCat 60
This commit also fixes the --driver option to configure script.