From 11fe4b6b5a1fff7e9c6491272d9302743f538557 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 19 Apr 2023 20:18:33 +0300 Subject: [PATCH] Added a new message for resolving --- ChangeLog.txt | 8 ++++++-- slpkg/binaries/install.py | 3 +++ slpkg/sbos/slackbuild.py | 6 ++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 00a7df57..23f008d6 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,4 +1,8 @@ -4.7.9 - 15/04/203 +4.8.0 - 19/04/2023 +Added: +- Message: 'Resolving the dependencies...' + +4.7.9 - 15/04/2023 Updated: - For proxies configuration - For convert file sizes @@ -8,7 +12,7 @@ Fixed: Added: - Support to local repositories (Thanks to marav) -4.7.8 - 12/04/203 +4.7.8 - 12/04/2023 Added: - Module to support for Unix shell-style wildcards for blacklist (Thanks to marav) - Supports proxies (Thanks to tpiszcze) #160 diff --git a/slpkg/binaries/install.py b/slpkg/binaries/install.py index be1f2e1c..59f98bfb 100644 --- a/slpkg/binaries/install.py +++ b/slpkg/binaries/install.py @@ -87,6 +87,7 @@ class Packages(Configs): def dependencies(self): """ Creating the dependencies list and the order for install. """ if not self.option_for_resolve_off: + print('\rResolving the dependencies... ', end='') for pkg in self.packages: @@ -102,6 +103,8 @@ class Packages(Configs): if requires: self.packages_requires = self.choose_dependencies(requires) + print(f'{self.byellow}Done{self.endc}') + self.install_order = [*self.packages_requires, *self.packages] def download(self) -> None: diff --git a/slpkg/sbos/slackbuild.py b/slpkg/sbos/slackbuild.py index 383da63d..85e9e5b4 100644 --- a/slpkg/sbos/slackbuild.py +++ b/slpkg/sbos/slackbuild.py @@ -95,6 +95,9 @@ class Slackbuilds(Configs): def creating_dictionary(self) -> None: """ Dictionary with the main slackbuilds and dependencies. """ + if not self.option_for_resolve_off: + print('\rResolving the dependencies... ', end='') + for sbo in self.slackbuilds: if self.option_for_resolve_off: self.sbos[sbo] = [] @@ -125,6 +128,9 @@ class Slackbuilds(Configs): self.install_order.extend(self.dependencies) + if not self.option_for_resolve_off: + print(f'{self.byellow}Done{self.endc}') + def creating_main_for_build(self) -> None: """ List with the main slackbuilds. """ [self.install_order.append(main) for main in self.sbos.keys() if main not in self.install_order]