]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix lilypond-book hash collision warning
authorJohn Mandereau <john.mandereau@gmail.com>
Wed, 30 Dec 2009 02:19:59 +0000 (03:19 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Wed, 30 Dec 2009 02:19:59 +0000 (03:19 +0100)
scripts/lilypond-book.py

index 0916ce1741d6058416d0a5b5dc85bcdad48ba1a1..5dd263b6ac10bae988aa2ef86634c4749f2b4994 100644 (file)
@@ -1308,7 +1308,7 @@ left-margin-default right-margin-default)"
         filename = path + '.ly'
         if os.path.exists (filename):
             diff_against_existing = filter_pipe (self.full_ly (), 'diff -u %s -' % filename)
-            if not diff_against_existing.startswith ('\n'):
+            if diff_against_existing:
                 warning ("%s: duplicate filename but different contents of orginal file,\n\
 printing diff against existing file." % filename)
                 ly.stderr_write (diff_against_existing)