From 92333721e59ebbb919d326e4b8486d4e60a17175 Mon Sep 17 00:00:00 2001 From: Nathan Wilcox Date: Mon, 22 May 2017 20:38:22 -0700 Subject: [PATCH] Examine all future versions which are assumed to follow the same Version parser schema. --- zcutil/make-release.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/zcutil/make-release.py b/zcutil/make-release.py index bdbaf03a..162cef68 100755 --- a/zcutil/make-release.py +++ b/zcutil/make-release.py @@ -96,8 +96,15 @@ def phase(message): @phase('Checking RELEASE_PREV tag.') def verify_releaseprev_tag(releaseprev): candidates = [] + + # Any tag beginning with a 'v' followed by [1-9] must be a version + # matching our Version parser. Tags beginning with v0 may exist from + # upstream and those do not follow our schema and are silently + # ignored. Any other tag is silently ignored. + candidatergx = re.compile('^v[1-9].*$') + for tag in sh_out('git', 'tag', '--list').splitlines(): - if tag.startswith('v1'): # Ignore v0.* bitcoin tags and other stuff. + if candidatergx.match(tag): candidates.append(Version.parse_arg(tag)) candidates.sort()