From ff597b1db43b26f712d23db2000ec65a7411450c Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 5 Sep 2017 09:10:06 +0100 Subject: [PATCH] trivial: Ignore the .pot file in the po directory Also, reindent to 4 spaces. --- po/test-deps | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/po/test-deps b/po/test-deps index b7dd1600d..9c3063cf2 100755 --- a/po/test-deps +++ b/po/test-deps @@ -60,12 +60,16 @@ except ImportError: print("Error: missing dependency python cairo (python3-cairo)") err = 1 +# check that LINUGAS lists every language with a .po file with open('po/LINGUAS') as f: - langs = f.read().splitlines() + langs = f.read().splitlines() for root, dirs, files in os.walk('po'): - for file in files: - l = file.split('.po') - if len(l) > 1 and not l[0] in langs: - err = 1 - print("Error: missing translations for %s" % l[0]) + for file in files: + if not file.endswith('.po'): + continue + l = file.split('.po') + if len(l) > 1 and not l[0] in langs: + err = 1 + print("Error: missing translations for %s" % l[0]) + sys.exit(err)