Added a new message for resolving

This commit is contained in:
Dimitris Zlatanidis 2023-04-19 20:18:33 +03:00
parent 96a78b1708
commit 11fe4b6b5a
3 changed files with 15 additions and 2 deletions

View file

@ -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: Updated:
- For proxies configuration - For proxies configuration
- For convert file sizes - For convert file sizes
@ -8,7 +12,7 @@ Fixed:
Added: Added:
- Support to local repositories (Thanks to marav) - Support to local repositories (Thanks to marav)
4.7.8 - 12/04/203 4.7.8 - 12/04/2023
Added: Added:
- Module to support for Unix shell-style wildcards for blacklist (Thanks to marav) - Module to support for Unix shell-style wildcards for blacklist (Thanks to marav)
- Supports proxies (Thanks to tpiszcze) #160 - Supports proxies (Thanks to tpiszcze) #160

View file

@ -87,6 +87,7 @@ class Packages(Configs):
def dependencies(self): def dependencies(self):
""" Creating the dependencies list and the order for install. """ """ Creating the dependencies list and the order for install. """
if not self.option_for_resolve_off: if not self.option_for_resolve_off:
print('\rResolving the dependencies... ', end='')
for pkg in self.packages: for pkg in self.packages:
@ -102,6 +103,8 @@ class Packages(Configs):
if requires: if requires:
self.packages_requires = self.choose_dependencies(requires) self.packages_requires = self.choose_dependencies(requires)
print(f'{self.byellow}Done{self.endc}')
self.install_order = [*self.packages_requires, *self.packages] self.install_order = [*self.packages_requires, *self.packages]
def download(self) -> None: def download(self) -> None:

View file

@ -95,6 +95,9 @@ class Slackbuilds(Configs):
def creating_dictionary(self) -> None: def creating_dictionary(self) -> None:
""" Dictionary with the main slackbuilds and dependencies. """ """ Dictionary with the main slackbuilds and dependencies. """
if not self.option_for_resolve_off:
print('\rResolving the dependencies... ', end='')
for sbo in self.slackbuilds: for sbo in self.slackbuilds:
if self.option_for_resolve_off: if self.option_for_resolve_off:
self.sbos[sbo] = [] self.sbos[sbo] = []
@ -125,6 +128,9 @@ class Slackbuilds(Configs):
self.install_order.extend(self.dependencies) 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: def creating_main_for_build(self) -> None:
""" List with the main slackbuilds. """ """ List with the main slackbuilds. """
[self.install_order.append(main) for main in self.sbos.keys() if main not in self.install_order] [self.install_order.append(main) for main in self.sbos.keys() if main not in self.install_order]