From d1413bef69ad7ea49a242ce8a9638551305f3a7a Mon Sep 17 00:00:00 2001 From: gorhill Date: Tue, 16 Aug 2016 14:04:49 -0400 Subject: [PATCH] revision 100+ will be release candidates --- tools/make-firefox-meta.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/make-firefox-meta.py b/tools/make-firefox-meta.py index 75e3c97b3..c63d48c9b 100644 --- a/tools/make-firefox-meta.py +++ b/tools/make-firefox-meta.py @@ -79,7 +79,12 @@ with open(chromium_manifest, encoding='utf-8') as m: match = re.search('^(\d+\.\d+\.\d+)(\.\d+)$', manifest['version']) if match: - manifest['version'] = match.group(1) + 'b' + match.group(2)[1:] + buildtype = int(match.group(2)[1:]) + if buildtype < 100: + builttype = 'b' + str(buildtype) + else: + builttype = 'rc' + str(buildtype - 100) + manifest['version'] = match.group(1) + builttype manifest['homepage'] = 'https://github.com/gorhill/uBlock' manifest['description'] = descriptions['en']