build,json: fix compatibility with Python 3.5
authorPaul Spooren <mail@aparcar.org>
Sun, 12 Jul 2020 04:44:55 +0000 (18:44 -1000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 13 Jul 2020 20:24:30 +0000 (21:24 +0100)
The f-string feature was introduced in Python 3.6. As Buildbots may run
on Debian 9, which comes per default with Python 3.5, this would cause
an issue. Instead of f-strings use the *legacy* `.format()` function.

Signed-off-by: Paul Spooren <mail@aparcar.org>
scripts/json_overview_image_info.py

index c76a4428409c968d7182b30b1c114791d16b6281..ca6fbbc962f12ac38a5c05a3d63c446153979c5a 100755 (executable)
@@ -38,7 +38,7 @@ if output:
             "make",
             "--no-print-directory",
             "-C",
-            f"target/linux/{output['target'].split('/')[0]}",
+            "target/linux/{}".format(output['target'].split('/')[0]),
             "val.DEFAULT_PACKAGES",
             "val.ARCH_PACKAGES",
         ],