From 6e8498351441e375baedacfd287e83beda1ee54a Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 16 Mar 2018 19:50:31 -0400 Subject: [PATCH] use LooseVersion instead of StrictVersion (because "rc") --- dist/firefox/publish-signed-beta.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/firefox/publish-signed-beta.py b/dist/firefox/publish-signed-beta.py index fe7d7de39..4d84b3bd8 100755 --- a/dist/firefox/publish-signed-beta.py +++ b/dist/firefox/publish-signed-beta.py @@ -13,7 +13,7 @@ import tempfile import time import zipfile -from distutils.version import StrictVersion +from distutils.version import LooseVersion from string import Template # - Download target (raw) uBlock0.webext.xpi from GitHub @@ -250,7 +250,7 @@ with open(updates_json_filepath) as f: updates_json = json.load(f) f.close() previous_version = updates_json['addons'][extension_id]['updates'][0]['version'] - if StrictVersion(version) > StrictVersion(previous_version): + if LooseVersion(version) > LooseVersion(previous_version): with open(os.path.join(projdir, 'platform', 'webext', 'updates.template.json')) as f: template_json = Template(f.read()) f.close()