mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Fixed remove miltiple packages with dependencies
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
ba78267936
commit
7f2d426ed9
2 changed files with 12 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
4.3.2 - 28/11/2022
|
||||
Fixed:
|
||||
- Remove multiple packages with dependencies
|
||||
|
||||
4.3.1 - 26/11/2022
|
||||
Added:
|
||||
- Category in the view command
|
||||
|
|
|
@ -69,11 +69,14 @@ class ViewMessage:
|
|||
self._view_installed_packages(pkg)
|
||||
slackbuilds.append(pkg)
|
||||
|
||||
dependencies.append(self.session.query(
|
||||
requires = self.session.query(
|
||||
LogsDependencies.requires).filter(
|
||||
LogsDependencies.name == pkg).first())
|
||||
LogsDependencies.name == pkg).first()
|
||||
|
||||
if None not in dependencies and '--resolve-off' not in self.flags:
|
||||
if requires:
|
||||
dependencies.append(requires)
|
||||
|
||||
if dependencies and '--resolve-off' not in self.flags:
|
||||
print('\nDependencies:')
|
||||
|
||||
for i in range(0, len(dependencies)):
|
||||
|
@ -138,7 +141,8 @@ class ViewMessage:
|
|||
for package in installed:
|
||||
black = package.split('-')[0]
|
||||
if (package.startswith(f'{name}-') and
|
||||
self.sbo_repo_tag in package and black not in self.black.get()):
|
||||
self.sbo_repo_tag in package and
|
||||
black not in self.black.get()):
|
||||
self.installed_packages.append(package)
|
||||
print(f'[{color["RED"]} delete {color["ENDC"]}] -> {package}')
|
||||
|
||||
|
|
Loading…
Reference in a new issue