Fix the tool for checking translated messages header files.
authorib <ib@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 7 Jan 2015 10:26:45 +0000 (10:26 +0000)
committerib <ib@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 7 Jan 2015 10:26:45 +0000 (10:26 +0000)
Starting with r36805 there may be conditionally empty #defines
the tool couldn't handle.

Reported by Ambrogio De Lorenzo, ogio.spam gmail com.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@37353 b3059339-0415-0410-9bf9-f77b7e298cf2

TOOLS/mphelp_check.py

index 595673e..5dd612d 100755 (executable)
@@ -20,7 +20,11 @@ def parse(filename):
             while line and line[-1] == '\\':
                 line = it.next().strip()
             continue
-        _, name, value = line.split(None, 2)
+        try:
+            _, name, value = line.split(None, 2)
+        except ValueError:
+            if name in r:
+                continue
         value = value.strip('"')
         while line[-1] == '\\':
             line = it.next().strip()