From b23f7606abd8830472bce410bf94cd36fe1aef0a Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 7 May 2023 20:06:12 +0300 Subject: [PATCH] Updated for download --- slpkg/views/views.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/slpkg/views/views.py b/slpkg/views/views.py index fe8594ed..0ee78ed5 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -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. """