From 6d37595396fd64d4c7ac10f61f2fd9a3ffe083ed Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Mon, 25 Oct 2010 08:39:49 +0100 Subject: [PATCH] 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. --- scripts/convert-ly.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.39.2