* We only need history here, so this shouldnt be the place to fill pkg.history
If pkg.history is really needed in this code path, than this should not be the place for it and we should move it some where else.
This commit is contained in:
+2
-2
@@ -442,8 +442,8 @@ def upgrade_pkg_names(A = []):
|
||||
continue
|
||||
|
||||
if security_only:
|
||||
pkg.history = ctx.packageDB.get_history(x)
|
||||
updates = [i for i in pkg.history if Version(i.release) > Version(release)]
|
||||
history = ctx.packageDB.get_history(x)
|
||||
updates = [i for i in history if Version(i.release) > Version(release)]
|
||||
if not pisi.util.any(lambda i:i.type == 'security', updates):
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user