Updated for packages

This commit is contained in:
Dimitris Zlatanidis 2023-03-22 18:58:31 +02:00
parent 4a2e7e6751
commit 5cce54241e

View file

@ -85,7 +85,7 @@ class ViewMessage(Configs):
self.summary(slackbuilds, dependencies, option='build')
def install_packages(self, slackbuilds: list, dependencies: list, mode: str) -> None:
def install_packages(self, packages: list, dependencies: list, mode: str) -> None:
""" View packages for install. """
title: str = 'Install Packages'
if mode == 'upgrade':
@ -93,19 +93,19 @@ class ViewMessage(Configs):
self.ascii.draw_package_title_box('The following packages will be installed or upgraded:', title)
for sbo in slackbuilds:
version: str = SBoQueries(sbo).version()
self.view_packages(sbo, version, mode=mode)
for pkg in packages:
version: str = SBoQueries(pkg).version()
self.view_packages(pkg, version, mode=mode)
if dependencies:
self.ascii.draw_middle_line()
self.ascii.draw_dependency_line()
for sbo in dependencies:
version: str = SBoQueries(sbo).version()
self.view_packages(sbo, version, mode=mode)
for pkg in dependencies:
version: str = SBoQueries(pkg).version()
self.view_packages(pkg, version, mode=mode)
self.summary(slackbuilds, dependencies, option=mode)
self.summary(packages, dependencies, option=mode)
def download_packages(self, slackbuilds: list, directory: Path) -> None:
""" View downloaded packages. """