From df913531239241badf5898995acc2d38c5fe6bc0 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Mon, 7 Aug 2023 07:22:58 -0700 Subject: [PATCH] Fix formatting --- pycheribuild/projects/cross/cheribsd.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pycheribuild/projects/cross/cheribsd.py b/pycheribuild/projects/cross/cheribsd.py index da6551166..42f650898 100644 --- a/pycheribuild/projects/cross/cheribsd.py +++ b/pycheribuild/projects/cross/cheribsd.py @@ -1350,8 +1350,11 @@ def build_and_install_subdir(self, make_args, subdir, skip_build=False, skip_cle if is_lib and install_to_internal_sysroot: # Due to all the bmake + shell escaping I need 4 dollars here to get it to expand SYSROOT sysroot_var = "\"$$$${SYSROOT}\"" - install_to_sysroot_cmd = "if [ -n {sysroot} ]; then {make} install {i} MK_TESTS=no DESTDIR={sysroot};" \ - " fi".format(make=make_in_subdir, sysroot=sysroot_var, i=install_nometalog_cmd) + install_to_sysroot_cmd = ( + f"if [ -n {sysroot_var} ]; then" + f" {make_in_subdir} install {install_nometalog_cmd} MK_TESTS=no DESTDIR={sysroot_var}; " + f"fi" + ) if skip_install: if install_to_sysroot_cmd: install_cmd = install_to_sysroot_cmd