refactor: update dependency management

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2024-05-11 22:16:36 +02:00
parent 9342c94096
commit a44508ead5
6 changed files with 74 additions and 46 deletions

View File

@@ -52,13 +52,16 @@ def install_mobileraker() -> None:
mr_im = InstanceManager(Moonraker)
mr_instances = mr_im.instances
if not mr_instances:
warn_msg = [
"Moonraker not found! Mobileraker's companion will not properly work "
"without a working Moonraker installation.",
"Mobileraker's companion's update manager configuration for Moonraker "
"will not be added to any moonraker.conf.",
]
Logger.print_dialog(DialogType.WARNING, warn_msg)
Logger.print_dialog(
DialogType.WARNING,
[
"Moonraker not found! Mobileraker's companion will not properly work "
"without a working Moonraker installation.",
"Mobileraker's companion's update manager configuration for Moonraker "
"will not be added to any moonraker.conf.",
],
end="",
)
if not get_confirm(
"Continue Mobileraker's companion installation?",
default_choice=False,
@@ -66,7 +69,7 @@ def install_mobileraker() -> None:
):
return
package_list = ["wget", "curl", "unzip", "dfu-util"]
package_list = ["git", "wget", "curl", "unzip", "dfu-util"]
check_install_dependencies(package_list)
git_clone_wrapper(MOBILERAKER_REPO, MOBILERAKER_DIR)
@@ -79,7 +82,8 @@ def install_mobileraker() -> None:
mr_im.restart_all_instance()
else:
Logger.print_info(
"Moonraker is not installed! Cannot add Mobileraker's companion to update manager!"
"Moonraker is not installed! Cannot add Mobileraker's "
"companion to update manager!"
)
Logger.print_ok("Mobileraker's companion successfully installed!")
except CalledProcessError as e: