mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Remove for loop
This commit is contained in:
parent
3febb28c9d
commit
7907f90cdb
1 changed files with 1 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue