|
24 | 24 |
|
25 | 25 |
|
26 | 26 | def install_dependencies(minifi_options: MinifiOptions, package_manager: PackageManager) -> bool:
|
27 |
| - return install_required(minifi_options, package_manager) |
28 |
| - |
| 27 | + res = install_required(minifi_options, package_manager) |
| 28 | + print("Installation went smoothly" if res else "There were some error during installation") |
| 29 | + return res |
29 | 30 |
|
30 | 31 | def run_cmake(minifi_options: MinifiOptions, package_manager: PackageManager):
|
31 | 32 | if not os.path.exists(minifi_options.build_dir):
|
32 | 33 | os.mkdir(minifi_options.build_dir)
|
33 | 34 | cmake_cmd = f"cmake -G Ninja {minifi_options.create_cmake_options_str()} {minifi_options.source_dir} -B {minifi_options.build_dir}"
|
34 |
| - return package_manager.run_cmd(cmake_cmd) |
| 35 | + res = package_manager.run_cmd(cmake_cmd) |
| 36 | + print("CMake command run successfully" if res else "CMake command run unsuccessfully") |
| 37 | + return res |
35 | 38 |
|
36 | 39 |
|
37 | 40 | def do_build(minifi_options: MinifiOptions, package_manager: PackageManager):
|
38 | 41 | build_cmd = f"cmake --build {str(minifi_options.build_dir)}"
|
39 |
| - return package_manager.run_cmd(build_cmd) |
| 42 | + res = package_manager.run_cmd(build_cmd) |
| 43 | + print("Build was successful" if res else "Build was unsuccessful") |
| 44 | + return res |
40 | 45 |
|
41 | 46 |
|
42 | 47 | def do_one_click_build(minifi_options: MinifiOptions, package_manager: PackageManager) -> bool:
|
@@ -136,5 +141,6 @@ def step_by_step_menu(minifi_options: MinifiOptions, package_manager: PackageMan
|
136 | 141 | ]
|
137 | 142 |
|
138 | 143 | step_by_step_prompt = inquirer.prompt(questions)
|
139 |
| - done = step_by_step_options[step_by_step_prompt["selection"]](minifi_options, package_manager) |
| 144 | + step_by_step_options[step_by_step_prompt["selection"]](minifi_options, package_manager) |
| 145 | + done = step_by_step_prompt['selection'] == 'Back' |
140 | 146 | return False
|
0 commit comments