diff --git a/slpkg/upgrade.py b/slpkg/upgrade.py index be1ce3c4..964e4366 100644 --- a/slpkg/upgrade.py +++ b/slpkg/upgrade.py @@ -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: