* 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:
Faik Uygur
2007-03-08 08:07:00 +00:00
parent d8dc2dd61b
commit d4b496e59e
+2 -2
View File
@@ -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