From: Graham Percival Date: Mon, 25 Oct 2010 07:39:49 +0000 (+0100) Subject: convert-ly: only update stable version if newer. X-Git-Tag: release/2.13.37-1~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6d37595396fd64d4c7ac10f61f2fd9a3ffe083ed;p=lilypond.git convert-ly: only update stable version if newer. Oops. The previous code changed \version "2.12.3" into \version "2.12.0" if there was no change. --- diff --git a/scripts/convert-ly.py b/scripts/convert-ly.py index 3c447b9157..e613eb39c0 100644 --- a/scripts/convert-ly.py +++ b/scripts/convert-ly.py @@ -259,9 +259,11 @@ def do_one_file (infile_name): if global_options.diff_version_update: if result == input: # check the y in x.y.z (minor version number) - if last[0:2] != from_version[0:2]: + previous_stable = (last[0], 2*(last[1]/2), 0) + if ((last[0:2] != from_version[0:2]) and + (previous_stable > from_version)): # previous stable version - last = (last[0], 2*(last[1]/2), 0) + last = previous_stable else: # make no (actual) change to the version number last = from_version