projects
/
openwrt
/
staging
/
adrian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c0ad7f
)
build,json: fix compatibility with Python 3.5
author
Paul Spooren
<mail@aparcar.org>
Sun, 12 Jul 2020 04:44:55 +0000
(18:44 -1000)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/scripts/json_overview_image_info.py
b/scripts/json_overview_image_info.py
index c76a4428409c968d7182b30b1c114791d16b6281..ca6fbbc962f12ac38a5c05a3d63c446153979c5a 100755
(executable)
--- a/
scripts/json_overview_image_info.py
+++ b/
scripts/json_overview_image_info.py
@@
-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",
],