Added message for resolving

This commit is contained in:
Dimitris Zlatanidis 2023-05-25 22:25:58 +03:00
parent 3879958d08
commit bc4e6bc915

View file

@ -12,6 +12,7 @@ from slpkg.upgrade import Upgrade
from slpkg.utilities import Utilities
from slpkg.dialog_box import DialogBox
from slpkg.downloader import Downloader
from slpkg.views.asciibox import AsciiBox
from slpkg.views.views import ViewMessage
from slpkg.logging_deps import LoggingDeps
from slpkg.repositories import Repositories
@ -37,6 +38,7 @@ class Packages(Configs):
self.view_message = ViewMessage(flags, repository, data)
self.check_md5 = Md5sum(flags)
self.download = Downloader(flags)
self.ascii = AsciiBox()
self.dependencies: list = []
self.install_order: list = []
@ -79,11 +81,13 @@ class Packages(Configs):
def creating_dependencies_list(self) -> None:
if not self.option_for_resolve_off:
print('\rResolving dependencies, please wait... ', end='')
for package in self.packages:
dependencies: tuple = Required(self.data, package).resolve()
for dependency in dependencies:
self.dependencies.append(dependency)
print(f'{self.yellow}{self.ascii.done}{self.endc}')
def remove_duplicate_from_dependencies_list(self) -> None:
if self.dependencies: