summaryrefslogtreecommitdiffstats
path: root/cnucnu/helper.py
diff options
context:
space:
mode:
authorTill Maas <opensource@till.name>2010-01-30 20:21:33 +0100
committerTill Maas <opensource@till.name>2010-01-30 20:21:33 +0100
commit9c9ec3ca1763883d2866c82d54fdebc917060a90 (patch)
tree90181a9582aa7ba83dd8a102e693187e04d3df88 /cnucnu/helper.py
parentab6229814a54798248862a926a128c7ef275028c (diff)
downloadcnucnu-9c9ec3ca1763883d2866c82d54fdebc917060a90.tar.gz
cnucnu-9c9ec3ca1763883d2866c82d54fdebc917060a90.tar.xz
cnucnu-9c9ec3ca1763883d2866c82d54fdebc917060a90.zip
helper.split_rc(): keep all version information
- if version contains a dash ("-"), then split_rc returned a truncated version string. This broke vim-latex snapshot comparison.
Diffstat (limited to 'cnucnu/helper.py')
-rw-r--r--cnucnu/helper.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cnucnu/helper.py b/cnucnu/helper.py
index 991eb99..12de55d 100644
--- a/cnucnu/helper.py
+++ b/cnucnu/helper.py
@@ -144,7 +144,10 @@ def split_rc(version):
if rc:
return (v, rc)
else:
- return (v, "")
+ # if version contains a dash, but no release candidate string is found, v != version, therfore use version here
+ # Example version: 1.8.23-20100128-r1100
+ # Then: v=1.8.23, but rc=""
+ return (version, "")
def get_rc(release):
import re