From 05e217caa5a2bbb048e7d8d0c2231fc30562f44e Mon Sep 17 00:00:00 2001 From: Olexa Bilaniuk Date: Sat, 12 Nov 2016 11:35:15 -0500 Subject: Fixed SyntaxError in itstool invocation in yelphelper.py during installation. During a `python3.4 setup.py install`, the yelphelper.py script errors out with: "SyntaxError: can use starred expression only as assignment target". Fix this problem. --- authors.txt | 1 + mesonbuild/scripts/yelphelper.py | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/authors.txt b/authors.txt index c2e838876..9bf3e33ec 100644 --- a/authors.txt +++ b/authors.txt @@ -55,3 +55,4 @@ Jouni Kosonen Aurelien Jarno Mark Schulte Paulo Antonio Alvarez +Olexa Bilaniuk diff --git a/mesonbuild/scripts/yelphelper.py b/mesonbuild/scripts/yelphelper.py index f33454d9d..524ef45be 100644 --- a/mesonbuild/scripts/yelphelper.py +++ b/mesonbuild/scripts/yelphelper.py @@ -34,7 +34,7 @@ def build_pot(srcdir, project_id, sources): # Must be relative paths sources = [os.path.join('C', source) for source in sources] outfile = os.path.join(srcdir, project_id + '.pot') - subprocess.call(['itstool', '-o', outfile, *sources]) + subprocess.call(['itstool', '-o', outfile]+sources) def update_po(srcdir, project_id, langs): potfile = os.path.join(srcdir, project_id + '.pot') @@ -55,9 +55,8 @@ def merge_translations(blddir, sources, langs): for lang in langs: subprocess.call([ 'itstool', '-m', os.path.join(blddir, lang, lang + '.gmo'), - '-o', os.path.join(blddir, lang), - *sources, - ]) + '-o', os.path.join(blddir, lang) + ]+sources) def install_help(srcdir, blddir, sources, media, langs, install_dir, destdir, project_id, symlinks): c_install_dir = os.path.join(install_dir, 'C', project_id) -- cgit v1.2.3