@@ -61,7 +61,12 @@ class InstallerImpl:
6161 _sources_list_dir = os .path .join (os .sep , "etc" , "apt" , "sources.list.d" )
6262
6363 def __init__ (
64- self , branch : Optional [str ] = None , ros_test_deps : bool = False , ros_doc_deps : bool = False , skip_ros_deps : bool = False , debug : bool = False
64+ self ,
65+ branch : Optional [str ] = None ,
66+ ros_test_deps : bool = False ,
67+ ros_doc_deps : bool = False ,
68+ skip_ros_deps : bool = False ,
69+ debug : bool = False ,
6570 ):
6671 self ._branch = branch
6772 self ._ros_test_deps = ros_test_deps
@@ -527,8 +532,10 @@ def tue_install_git(self, url: str, target_dir: Optional[str] = None, version: O
527532 url_old = url
528533 url = sp .check_output (cmds , text = True ).strip ()
529534 if not url :
530- self .tue_install_error (f"repo: '{ url } ' is invalid. It is generated from: '{ url_old } '\n "
531- f"The problem will probably be solved by resourcing the setup" )
535+ self .tue_install_error (
536+ f"repo: '{ url } ' is invalid. It is generated from: '{ url_old } '\n "
537+ f"The problem will probably be solved by resourcing the setup"
538+ )
532539 # ToDo: This depends on behaviour of tue-install-error
533540 return False
534541
@@ -574,8 +581,10 @@ def tue_install_git(self, url: str, target_dir: Optional[str] = None, version: O
574581 cmd = f"git -C { target_dir } remote set-url origin { url } "
575582 sub = self ._default_background_popen (cmd )
576583 if sub .returncode != 0 :
577- self .tue_install_error (f"Could not change git url of '{ target_dir } ' to '{ url } '"
578- f"({ sub .returncode } ):\n { repr (cmd )} " )
584+ self .tue_install_error (
585+ f"Could not change git url of '{ target_dir } ' to '{ url } '"
586+ f"({ sub .returncode } ):\n { repr (cmd )} "
587+ )
579588 # ToDo: This depends on behaviour of tue-install-error
580589 return False
581590
@@ -598,7 +607,6 @@ def tue_install_git(self, url: str, target_dir: Optional[str] = None, version: O
598607 if sp_results .returncode != 0 and submodule_sync_res :
599608 res += f"\n { submodule_sync_res } "
600609
601-
602610 cmd = f"git -C { target_dir } submodule update --init --recursive"
603611 self .tue_install_debug (f"{ cmd } " )
604612 cmd , cmds = _which_split_cmd (cmd )
@@ -630,7 +638,6 @@ def tue_install_git(self, url: str, target_dir: Optional[str] = None, version: O
630638 if try_branch_res :
631639 res += f"\n { try_branch_res } "
632640
633-
634641 self ._show_update_msg (self ._current_target , res )
635642 return True
636643
0 commit comments