Browse Source

Use dirname() and do without re module.

wip/archive
Mark Hindley 3 years ago
parent
commit
91fd58c5e4
  1. 3
      amprolla_merge_translations.py

3
amprolla_merge_translations.py

@ -36,8 +36,7 @@ def merge_translations(filelist):
elif merged_trnsl and i == filelist[0]:
# In the absence of Devuan translations for forked packages, just
# remove upstream ones in case they are incorrect.
from re import sub as re_sub
en_trnsl = re_sub('-[a-z]{2}(_[A-Z]{2})?', '-en', i)
en_trnsl = join(dirname(i),'Translation-en.bz2')
tfile = bz2_open(en_trnsl).read()
tfile = tfile.decode('utf-8')
trnsl = parse_packages(tfile)

Loading…
Cancel
Save