[elbe-devel] [PATCH v2 3/3] hdimg: remove Python 3.6 format string
Bastian Germann
bage at linutronix.de
Fri May 13 21:39:02 CEST 2022
Installation on stretch (Python 3.5 syntax check) fails since
hdimg.py was moved to a package that is installed on the host.
Fix it by using old format strings.
Fixes: c3ac8be4daa ("debian: fix library dependencies for check_updates")
Signed-off-by: Bastian Germann <bage at linutronix.de>
---
elbepack/hdimg.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/elbepack/hdimg.py b/elbepack/hdimg.py
index 84d7a2e92f..345779868c 100644
--- a/elbepack/hdimg.py
+++ b/elbepack/hdimg.py
@@ -400,9 +400,9 @@ def create_binary(disk, part, ppart, target):
else:
tmp = target + "/" + part.text("binary")
- do(f'dd if="{tmp}" of="{loopdev}"')
+ do('dd if="%s" of="%s"' % (tmp, loopdev))
finally:
- do(f'losetup -d "{loopdev}"')
+ do('losetup -d "%s"' % loopdev)
def create_logical_partitions(disk,
extended,
--
2.30.2
More information about the elbe-devel
mailing list