mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-05 11:02:14 +01:00
Updated for packages
This commit is contained in:
parent
4a2e7e6751
commit
5cce54241e
1 changed files with 8 additions and 8 deletions
|
@ -85,7 +85,7 @@ class ViewMessage(Configs):
|
||||||
|
|
||||||
self.summary(slackbuilds, dependencies, option='build')
|
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. """
|
""" View packages for install. """
|
||||||
title: str = 'Install Packages'
|
title: str = 'Install Packages'
|
||||||
if mode == 'upgrade':
|
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)
|
self.ascii.draw_package_title_box('The following packages will be installed or upgraded:', title)
|
||||||
|
|
||||||
for sbo in slackbuilds:
|
for pkg in packages:
|
||||||
version: str = SBoQueries(sbo).version()
|
version: str = SBoQueries(pkg).version()
|
||||||
self.view_packages(sbo, version, mode=mode)
|
self.view_packages(pkg, version, mode=mode)
|
||||||
|
|
||||||
if dependencies:
|
if dependencies:
|
||||||
self.ascii.draw_middle_line()
|
self.ascii.draw_middle_line()
|
||||||
self.ascii.draw_dependency_line()
|
self.ascii.draw_dependency_line()
|
||||||
|
|
||||||
for sbo in dependencies:
|
for pkg in dependencies:
|
||||||
version: str = SBoQueries(sbo).version()
|
version: str = SBoQueries(pkg).version()
|
||||||
self.view_packages(sbo, version, mode=mode)
|
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:
|
def download_packages(self, slackbuilds: list, directory: Path) -> None:
|
||||||
""" View downloaded packages. """
|
""" View downloaded packages. """
|
||||||
|
|
Loading…
Reference in a new issue