Mercurial > gub
changeset 5578:c2a39f6a2f1e
FIXME DO NOT SUBMIT: disgusting workaround for -HEAD issues.
author | Graham Percival <gperciva@gperciva-desktop.(none)> |
---|---|
date | Tue, 15 Sep 2009 09:04:15 +0100 |
parents | c5d81ab00fef |
children | e815eadc1a6a |
files | test-lily/rsync-test.py |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/test-lily/rsync-test.py Mon Sep 14 11:33:47 2009 +0100 +++ b/test-lily/rsync-test.py Tue Sep 15 09:04:15 2009 +0100 @@ -149,12 +149,21 @@ current_test_output = '' for f in outputs: m = re.search ('lilypond-([.0-9]+)-([0-9]+).test-output.tar.bz2', f) + ishead = 0 + if not m: + m = re.search ('lilypond-([.0-9]+)-(HEAD).test-output.tar.bz2', f) + # ugly hack for "latest version" + #m.group(2) = 999 ## doesn't work; can't modify a group + ishead = 1 if not m: printf (f) assert 0 version = list (map (int, m.group (1).split ('.'))) - build = int (m.group (2)) + if ishead: + build = 999 + else: + build = int (m.group (2)) tup = (version, build) if tup <= current_tuple: