mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Updated for download
This commit is contained in:
parent
a4afa7deef
commit
b23f7606ab
1 changed files with 3 additions and 5 deletions
|
@ -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. """
|
||||
|
|
Loading…
Reference in a new issue