mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-06 08:46:21 +01:00
Fixed for remove pkg
This commit is contained in:
parent
cd5bd1240e
commit
d9a9106c51
1 changed files with 4 additions and 3 deletions
|
@ -46,7 +46,8 @@ class ViewMessage(Configs):
|
|||
def view_packages(self, package: str, mode: str) -> None:
|
||||
""" Printing the main packages. """
|
||||
color: str = self.red
|
||||
if self.utils.is_option(self.flag_binary, self.flags) or mode == 'remove':
|
||||
|
||||
if self.utils.is_option(self.flag_binary, self.flags):
|
||||
version: str = BinQueries(package).version()
|
||||
repo: str = BinQueries(package).repository()
|
||||
else:
|
||||
|
@ -162,9 +163,9 @@ class ViewMessage(Configs):
|
|||
installed = self.utils.is_package_installed(name)
|
||||
|
||||
if installed:
|
||||
pkg: str = self.utils.split_binary_pkg(installed)[0]
|
||||
pkg: list = self.utils.split_binary_pkg(installed)
|
||||
self.installed_packages.append(installed)
|
||||
self.view_packages(pkg, mode='remove')
|
||||
self.ascii.draw_view_package(pkg[0], pkg[1], self.red, '')
|
||||
|
||||
def choose_dependencies_for_remove(self, dependencies: list) -> list:
|
||||
""" Choose packages for remove using the dialog box. """
|
||||
|
|
Loading…
Add table
Reference in a new issue