Fixed print message

This commit is contained in:
Dimitris Zlatanidis 2022-12-25 23:36:02 +02:00
parent 498b55d0e2
commit 04076328f2

View file

@ -67,7 +67,6 @@ class ViewMessage:
def remove_packages(self, packages: list):
""" View remove packages. """
print('The following packages will be removed:\n')
slackbuilds, dependencies, deps = [], [], []
for pkg in packages:
slackbuilds.append(pkg)
@ -86,6 +85,8 @@ class ViewMessage:
if deps and '--resolve-off' not in self.flags:
dependencies = self.choose_dependencies_for_remove(dependencies)
print('The following packages will be removed:\n')
for pkg in slackbuilds:
self._view_removed(pkg)