@@ -323,20 +323,20 @@ def __init__(self, conf, conanfile=None):
323
323
self .preserve_env = False
324
324
self .conan_options = []
325
325
326
- logging .info ("Profile name:" , self .profile )
326
+ logging .info ("Profile name: {}" . format ( self .profile ) )
327
327
logging .info ("Configuration:" )
328
- logging .info (" " , "\n " .join (self .profile_data .split ("\n " )))
328
+ logging .info (" {}" . format ( "\n " .join (self .profile_data .split ("\n " ) )))
329
329
330
330
# Prepare runtime environment
331
- logging .info ("Runtime directory:" , self .runtime_dir )
331
+ logging .info ("Runtime directory: {}" . format ( self .runtime_dir ) )
332
332
333
333
def _read_conf_profile (self , conf ) -> None :
334
334
self .profile = conf .current_profile
335
335
self .profile_path = conf .profile_path (self .profile )
336
336
self .profile_data = conf .read (self .profile )
337
337
338
338
def _read_anonymous_profile (self , conanfile ) -> None :
339
- logging .info ("Source profile:" , conanfile )
339
+ logging .info ("Source profile: {}" . format ( conanfile ) )
340
340
self .profile_path = conanfile
341
341
with open (conanfile , "r" ) as file :
342
342
self .profile_data = file .read ()
@@ -350,7 +350,7 @@ def runtime_env_path(self) -> str:
350
350
def _prepare_runtime_dir (self ) -> None :
351
351
# Clean and create runtime directory
352
352
self .clean ()
353
- logging .debug ("Create:" , self .runtime_dir )
353
+ logging .debug ("Create: {}" . format ( self .runtime_dir ) )
354
354
os .makedirs (self .runtime_dir )
355
355
356
356
def _prepare_virtualrunenv (self ) -> None :
@@ -420,7 +420,7 @@ def _prepare_runtime_env(self, use_cache: bool = False) -> Environment:
420
420
return env
421
421
422
422
def _write_runtime_env (self , env : Environment ) -> None :
423
- logging .debug ("Write:" , self .runtime_env_path ())
423
+ logging .debug ("Write: {}" . format ( self .runtime_env_path () ))
424
424
env .export (self .runtime_env_path ())
425
425
426
426
def _process_arg (self , src_path ) -> str :
@@ -471,7 +471,7 @@ def _prepare_plugin_setups(self, env: Environment) -> List[PluginSetup]:
471
471
def clean (self ) -> None :
472
472
"""Clean the runtime directory."""
473
473
if os .path .exists (self .runtime_dir ):
474
- logging .debug ("Remove:" , self .runtime_dir )
474
+ logging .debug ("Remove: {}" . format ( self .runtime_dir ) )
475
475
shutil .rmtree (self .runtime_dir , ignore_errors = True )
476
476
477
477
def shell (
@@ -507,7 +507,7 @@ def shell(
507
507
" The following plugin drivers may contain setup() and teardown()"
508
508
)
509
509
logging .warning (" that will not be called automatically within the shell." )
510
- logging .warning ()
510
+ logging .warning ("" )
511
511
for plugin in plugin_setups :
512
512
logging .warning (" {}" .format (plugin .plugin ))
513
513
@@ -551,7 +551,7 @@ def exec(
551
551
if debug :
552
552
cmd .insert (0 , "gdb" )
553
553
cmd .insert (1 , "--args" )
554
- logging .info ("Exec:" , " " .join (cmd ))
554
+ logging .info ("Exec: {}" . format ( " " .join (cmd ) ))
555
555
logging .info ("---" )
556
556
print (end = "" , flush = True )
557
557
result = subprocess .run (cmd , check = False , env = env .as_dict ())
0 commit comments