mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
Fixed for bin repo
This commit is contained in:
parent
95feecfe6e
commit
09715a3ce9
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue