mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-28 09:58:21 +01:00
Added message for resolving
This commit is contained in:
parent
3879958d08
commit
bc4e6bc915
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue