aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-03-11 18:44:41 -0700
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-03-11 18:44:41 -0700
commitc9087f240efbe777c9a02eccd956d1a5bdad87a0 (patch)
treeb9d95996f8e1fcb32a8f9c2c4aef1f3560671570
parent38fc521c8946e52ad51d1ba7948862dcc4f1d157 (diff)
downloadrel-html-c9087f240efbe777c9a02eccd956d1a5bdad87a0.tar.gz
rel-html: use digit for stable release regexp
This doesn't fix anything yet but it does make the regexp lookup match the next release updates. Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
-rwxr-xr-xrel-html.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/rel-html.py b/rel-html.py
index bd3a900..edc6871 100755
--- a/rel-html.py
+++ b/rel-html.py
@@ -262,8 +262,8 @@ class index_tarball_hunter(HTMLParser):
def is_rel_eol(self, rel_specs):
index_parser = self.index_parser
for eol in index_parser.eol:
- m = re.match(r"v*(?P<VERSION>\w+)\.+" \
- "(?P<PATCHLEVEL>\w+)[.]*" \
+ m = re.match(r"v*(?P<VERSION>\d+)\.+" \
+ "(?P<PATCHLEVEL>\d+)[.]*" \
"(?P<SUBLEVEL>\w*)[.-]*" \
"(?P<EXTRAVERSION>\w*)", \
eol)
@@ -284,11 +284,11 @@ class index_tarball_hunter(HTMLParser):
return
m = re.match(r'' + index_parser.rel_html_proj + '-+' \
- "v*(?P<VERSION>\w+)\.+" \
- "(?P<PATCHLEVEL>\w+)\.*" \
+ "v*(?P<VERSION>\d+)\.+" \
+ "(?P<PATCHLEVEL>\d+)\.*" \
"(?P<SUBLEVEL>\w*)[.-]*" \
"(?P<EXTRAVERSION>\w*)[-]*" \
- "(?P<RELMOD_UPDATE>\w*)[-]*" \
+ "(?P<RELMOD_UPDATE>\d*)[-]*" \
"(?P<RELMOD_TYPE>[usnpc]*)", \
value)
if (not m):