mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-14 03:39:26 +00:00
trivial: Ignore the .pot file in the po directory
Also, reindent to 4 spaces.
This commit is contained in:
parent
268d180e3b
commit
ff597b1db4
16
po/test-deps
16
po/test-deps
@ -60,12 +60,16 @@ except ImportError:
|
|||||||
print("Error: missing dependency python cairo (python3-cairo)")
|
print("Error: missing dependency python cairo (python3-cairo)")
|
||||||
err = 1
|
err = 1
|
||||||
|
|
||||||
|
# check that LINUGAS lists every language with a .po file
|
||||||
with open('po/LINGUAS') as f:
|
with open('po/LINGUAS') as f:
|
||||||
langs = f.read().splitlines()
|
langs = f.read().splitlines()
|
||||||
for root, dirs, files in os.walk('po'):
|
for root, dirs, files in os.walk('po'):
|
||||||
for file in files:
|
for file in files:
|
||||||
l = file.split('.po')
|
if not file.endswith('.po'):
|
||||||
if len(l) > 1 and not l[0] in langs:
|
continue
|
||||||
err = 1
|
l = file.split('.po')
|
||||||
print("Error: missing translations for %s" % l[0])
|
if len(l) > 1 and not l[0] in langs:
|
||||||
|
err = 1
|
||||||
|
print("Error: missing translations for %s" % l[0])
|
||||||
|
|
||||||
sys.exit(err)
|
sys.exit(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user