Commit bf09109c authored by Hans-Christoph Steiner's avatar Hans-Christoph Steiner

mirror: fix syntax error on Python 3.4

It seems that Python 3.5 is more flexible with * expansion, Python 3.4 says:

SyntaxError: only named arguments may follow *expression
https://travis-ci.org/f-droid/fdroidserver/jobs/309194065
parent dcbc78d2
Pipeline #14563277 passed with stage
in 32 minutes and 18 seconds
......@@ -157,7 +157,8 @@ def main():
for k in update.GRAPHIC_NAMES:
f = d.get(k)
if f:
urls.append(_append_to_url_path(*components, f))
filepath_tuple = components + (f, )
urls.append(_append_to_url_path(*filepath_tuple))
_run_wget(os.path.join(basedir, *components), urls)
for k in update.SCREENSHOT_DIRS:
urls = []
......@@ -165,7 +166,8 @@ def main():
if filelist:
components = (section, app['packageName'], locale, k)
for f in filelist:
urls.append(_append_to_url_path(*components, f))
filepath_tuple = components + (f, )
urls.append(_append_to_url_path(*filepath_tuple))
_run_wget(os.path.join(basedir, *components), urls)
urls = dict()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment