mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Updated for view missing deps
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
a24d6c8590
commit
e57478cee7
3 changed files with 7 additions and 9 deletions
|
@ -74,9 +74,9 @@ class Packages(Configs): # pylint: disable=[R0902]
|
|||
self.clean_the_main_slackbuilds()
|
||||
self.add_main_packages_to_install_order()
|
||||
self.check_for_skipped()
|
||||
self.view.missing_dependencies(self.install_order)
|
||||
|
||||
self.view.install_upgrade_packages(self.packages, self.dependencies, self.mode)
|
||||
self.view.missing_dependencies(self.install_order)
|
||||
self.view.question()
|
||||
|
||||
start: float = time.time()
|
||||
|
|
|
@ -81,9 +81,11 @@ class Slackbuilds(Configs): # pylint: disable=[R0902,R0904]
|
|||
self.add_dependencies_to_install_order()
|
||||
self.clean_the_main_slackbuilds()
|
||||
self.add_main_packages_to_install_order()
|
||||
self.view.missing_dependencies(self.install_order)
|
||||
self.check_for_skipped()
|
||||
|
||||
self.view_slackbuilds_before_build()
|
||||
self.view.missing_dependencies(self.install_order)
|
||||
self.view.question()
|
||||
|
||||
start: float = time.time()
|
||||
self.view.skipping_packages(self.skipped_packages)
|
||||
|
@ -143,8 +145,6 @@ class Slackbuilds(Configs): # pylint: disable=[R0902,R0904]
|
|||
else:
|
||||
self.view.install_upgrade_packages(self.slackbuilds, self.dependencies, self.mode)
|
||||
|
||||
self.view.question()
|
||||
|
||||
def prepare_slackbuilds_for_build(self) -> None:
|
||||
""" Prepare slackbuilds for build.
|
||||
"""
|
||||
|
|
|
@ -341,12 +341,10 @@ class View(Configs): # pylint: disable=[R0902]
|
|||
if req not in self.data:
|
||||
not_found[package] = [req for req in requires if req not in self.data]
|
||||
if not_found:
|
||||
# print('+' + (self.columns - 1) * '=')
|
||||
print('Packages with missing dependencies:')
|
||||
# print('+' + (self.columns - 1) * '=')
|
||||
print('\nPackages with missing dependencies:')
|
||||
for pkg, deps in not_found.items():
|
||||
print(f"> {self.cyan}{pkg}{self.endc}: Requires: {self.red}{', '.join(deps)}{self.endc}")
|
||||
print()
|
||||
print(f"> {self.cyan}{pkg}{self.endc}: Requires "
|
||||
f"({len(deps)}) -> {self.red}{', '.join(deps)}{self.endc}")
|
||||
|
||||
def question(self, message: str = 'Do you want to continue?') -> None:
|
||||
""" View a question.
|
||||
|
|
Loading…
Reference in a new issue