From 9c9ec3ca1763883d2866c82d54fdebc917060a90 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Sat, 30 Jan 2010 20:21:33 +0100 Subject: 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. --- cnucnu/helper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cnucnu/helper.py') 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 -- cgit