1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-03 09:39:38 +02:00

fix py publish script

This commit is contained in:
Raymond Hill 2018-06-03 14:06:15 -04:00
parent 6c97872ddf
commit 8b049d592f
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -278,7 +278,7 @@ updates_json_filepath = os.path.join(projdir, 'dist', 'firefox', 'updates.json')
with open(updates_json_filepath) as f:
updates_json = json.load(f)
f.close()
previous_version = updates_json['addons'][extension_id]['updates'][0]['ext_version']
previous_version = updates_json['addons'][extension_id]['updates'][0]['version']
if LooseVersion(ext_version) > LooseVersion(previous_version):
with open(os.path.join(projdir, 'dist', 'firefox', 'updates.template.json')) as f:
template_json = Template(f.read())