From 517232e480cb704984b5da2ce219b83a29422083 Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Wed, 30 Dec 2009 03:19:59 +0100 Subject: [PATCH] Fix lilypond-book hash collision warning --- scripts/lilypond-book.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 0916ce1741..5dd263b6ac 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -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) -- 2.39.5