]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/convert-ly.py
Fix 1825: Convert-ly shall also print output if no replacement was done
[lilypond.git] / scripts / convert-ly.py
index c0c7ee3e354fdee020bfeeb971cf92f91be57ec0..930c11da107db7bb24345a13216beaf6dc9c5fce 100644 (file)
@@ -182,9 +182,11 @@ string."""
     conv_list = get_conversions (from_version, to_version)
 
     error_file_write (_ ("Applying conversion: "))
-        
+
     last_conversion = ()
     try:
+        if not conv_list:
+            last_conversion = to_version
         for x in conv_list:
             error_file_write (tup_to_str (x[0]))
             if x != conv_list[-1]:
@@ -275,7 +277,7 @@ def do_one_file (infile_name):
         elif not global_options.skip_version_add:
             result = newversion + '\n' + result
             
-        error_file_write ('\n')            
+        error_file_write ('\n')
     
         if global_options.edit:
             try: