Fixed for bin repo

This commit is contained in:
Dimitris Zlatanidis 2023-03-28 08:37:52 +03:00
parent 95feecfe6e
commit 09715a3ce9
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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')