From 5cce54241edc7e85df5b00cb847143e706454ab7 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 22 Mar 2023 18:58:31 +0200 Subject: [PATCH] Updated for packages --- slpkg/views/views.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/slpkg/views/views.py b/slpkg/views/views.py index 67cf1c53..9a830d94 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -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. """