From 2988bb77e816c1d502bbb58a55e7ef7a30662640 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 9 Feb 2018 22:54:02 +0100 Subject: [PATCH] python/build/project: allow trailing digit after letter in version number For version numbers such as OpenSSH's, e.g.: "7.2p2" --- python/build/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/build/project.py b/python/build/project.py index 087ca3d07..352806fcb 100644 --- a/python/build/project.py +++ b/python/build/project.py @@ -18,7 +18,7 @@ class Project: self.base = base if name is None or version is None: - m = re.match(r'^([-\w]+)-(\d[\d.]*[a-z]?)$', self.base) + m = re.match(r'^([-\w]+)-(\d[\d.]*[a-z]?[\d.]*)$', self.base) if name is None: name = m.group(1) if version is None: version = m.group(2)