[damned-lies] Ignore obsolete lines when comparing files about utf-8 encoding (Bug #580105)



commit a70296226989b57e00f397d5a68886a477cab11f
Author: Claude Paroz <claude 2xlibre net>
Date:   Mon Apr 27 09:39:31 2009 +0200

    Ignore obsolete lines when comparing files about utf-8 encoding (Bug #580105)
---
 stats/utils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/stats/utils.py b/stats/utils.py
index 84d1c07..e592972 100644
--- a/stats/utils.py
+++ b/stats/utils.py
@@ -251,7 +251,7 @@ def po_file_stats(pofile, msgfmt_checks = True):
             except:
                 status = STATUS_OK+1
         else:
-            command = ("msgconv -t UTF-8 %s | diff -i -u %s - >/dev/null") % (pofile,
+            command = ("msgconv -t UTF-8 %s | diff -i -I '^#~' -u %s - >/dev/null") % (pofile,
                                                                               pofile)
             (status, output, errs) = run_shell_command(command, env=c_env)
         if status != STATUS_OK:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]