From 09715a3ce90779b06d7100c7926bef2942840ed7 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 28 Mar 2023 08:37:52 +0300 Subject: [PATCH] Fixed for bin repo --- slpkg/download_only.py | 2 +- slpkg/views/views.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/slpkg/download_only.py b/slpkg/download_only.py index 1ed7f145..ee89102c 100644 --- a/slpkg/download_only.py +++ b/slpkg/download_only.py @@ -33,7 +33,7 @@ class Download(Configs): def packages(self, packages: list, repo='*') -> None: """ Download the package only. """ view = ViewMessage(self.flags) - view.download_packages(packages, self.directory) + view.download_packages(packages, self.directory, repo) view.question() download_path: Path = self.download_only_path diff --git a/slpkg/views/views.py b/slpkg/views/views.py index 4a86692b..abf979c5 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -112,15 +112,16 @@ class ViewMessage(Configs): self.summary(packages, dependencies, option=mode) - def download_packages(self, slackbuilds: list, directory: Path) -> None: + def download_packages(self, slackbuilds: list, directory: Path, repo='*') -> None: """ View downloaded packages. """ + mode = 'download' 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='download') + self.view_packages(sbo, mode, repo) self.summary(slackbuilds, dependencies=[], option='download')