summaryrefslogtreecommitdiffstats
path: root/cnucnu/helper.py
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-04-04 00:04:41 +0300
committerTill Maas <opensource@till.name>2011-04-14 17:22:58 +0200
commit02a73ab3ec7bf131371fbb2a7eef192a8a5c23ad (patch)
treee26ca7d4bd9744e751d2f46e181a9a74ba6fcdd6 /cnucnu/helper.py
parent4fe1d04ea38ca543932b9c33dc5b2ea4310aa480 (diff)
downloadcnucnu-02a73ab3ec7bf131371fbb2a7eef192a8a5c23ad.tar.gz
cnucnu-02a73ab3ec7bf131371fbb2a7eef192a8a5c23ad.tar.xz
cnucnu-02a73ab3ec7bf131371fbb2a7eef192a8a5c23ad.zip
Fix split_rc() with uppercase RC/PRE.
Diffstat (limited to 'cnucnu/helper.py')
-rw-r--r--cnucnu/helper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cnucnu/helper.py b/cnucnu/helper.py
index 20be23f..fb1777b 100644
--- a/cnucnu/helper.py
+++ b/cnucnu/helper.py
@@ -168,8 +168,8 @@ def upstream_cmp(v1, v2):
else:
return diff
-__rc_ups_regex = re.compile("([^-rp]*)(-?(([Rr][Cc]|[Pp][Rr][Ee])[0-9]?))?")
-__rc_rel_regex = re.compile(r'0\.[0-9]*\.(([Rr][Cc]|[Pp][Rr][Ee])[0-9])')
+__rc_ups_regex = re.compile("([^-rp]*)(-?((rc|pre)[0-9]?))?", re.I)
+__rc_rel_regex = re.compile(r'0\.[0-9]*\.((rc|pre)[0-9])', re.I)
def split_rc(version):
""" Split version into version and release candidate string if possible