diff options
author | Olexa Bilaniuk <obilaniu@gmail.com> | 2016-11-12 11:35:15 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-11-12 13:06:16 -0500 |
commit | 05e217caa5a2bbb048e7d8d0c2231fc30562f44e (patch) | |
tree | 3e52f6c7a4d5ec199247c2228731b7351898aa67 /mesonbuild/scripts/yelphelper.py | |
parent | 28b70ba4e583cba7c9043a42ab8696547fc0dcbc (diff) | |
download | meson-05e217caa5a2bbb048e7d8d0c2231fc30562f44e.zip meson-05e217caa5a2bbb048e7d8d0c2231fc30562f44e.tar.gz meson-05e217caa5a2bbb048e7d8d0c2231fc30562f44e.tar.bz2 |
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.
Diffstat (limited to 'mesonbuild/scripts/yelphelper.py')
-rw-r--r-- | mesonbuild/scripts/yelphelper.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mesonbuild/scripts/yelphelper.py b/mesonbuild/scripts/yelphelper.py index f33454d..524ef45 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) |