Updated for download

This commit is contained in:
Dimitris Zlatanidis 2023-05-07 20:06:12 +03:00
parent a4afa7deef
commit b23f7606ab

View file

@ -31,7 +31,7 @@ class ViewMessage(Configs):
self.upgrade = Upgrade(repository, data)
self.repos = Repositories()
self.download_only: Path = self.tmp_slpkg
self.download_only = None
self.installed_packages: list = []
self.is_binary: bool = self.utils.is_binary_repo(repository)
@ -124,16 +124,14 @@ class ViewMessage(Configs):
def download_packages(self, slackbuilds: list, directory: Path) -> None:
""" View downloaded packages. """
mode = 'download'
self.download_only: Path = directory
self.ascii.draw_package_title_box('The following packages will be downloaded:', 'slpkg download packages')
if directory:
self.download_only: Path = directory
for sbo in slackbuilds:
self.view_packages(sbo, mode)
self.summary(slackbuilds, dependencies=[], option='download')
self.summary(slackbuilds, dependencies=[], option=mode)
def remove_packages(self, packages: list) -> Any:
""" View remove packages. """