Remove for loop

This commit is contained in:
Dimitris Zlatanidis 2022-12-25 12:26:13 +02:00
parent 3febb28c9d
commit 7907f90cdb

View file

@ -43,12 +43,9 @@ class Upgrade:
repo_ver = SBoQueries(inst_pkg_name).version()
if LooseVersion(repo_ver) > LooseVersion(installed_ver):
requires += Requires(inst_pkg_name).resolve()
upgrade.append(inst_pkg_name)
# Creating a list with requires
for pkg in upgrade:
requires += Requires(pkg).resolve()
# Clean the packages if they are dependencies
for pkg in upgrade:
if pkg not in requires: