build,json: fix compatibility with Python 3.5
authorPaul Spooren <mail@aparcar.org>
Sun, 12 Jul 2020 04:44:55 +0000 (18:44 -1000)
committerPetr Štetiar <ynezz@true.cz>
Mon, 13 Jul 2020 20:45:04 +0000 (22:45 +0200)
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",
         ],