[elbe-devel] [PATCH v2 05/75] chroot: use f-strings
Daniel Braunwarth
daniel at braunwarth.dev
Wed Nov 2 20:13:47 CET 2022
Signed-off-by: Daniel Braunwarth <daniel at braunwarth.dev>
---
elbepack/commands/chroot.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/elbepack/commands/chroot.py b/elbepack/commands/chroot.py
index 671ae6bf4..02915ab44 100644
--- a/elbepack/commands/chroot.py
+++ b/elbepack/commands/chroot.py
@@ -63,14 +63,12 @@ def run_command(argv):
if opt.target:
try:
with project.targetfs:
- system("/usr/sbin/chroot %s %s" %
- (project.targetpath, cmd))
+ system(f"/usr/sbin/chroot {project.targetpath} {cmd}")
except CommandError as e:
print(repr(e))
else:
try:
with project.buildenv:
- system("/usr/sbin/chroot %s %s" %
- (project.chrootpath, cmd))
+ system(f"/usr/sbin/chroot {project.chrootpath} {cmd}")
except CommandError as e:
print(repr(e))
--
2.38.1
More information about the elbe-devel
mailing list