From d4b496e59eba207c452ebe3d911edc276ef2bffe Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Thu, 8 Mar 2007 08:07:00 +0000 Subject: [PATCH] * 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. --- pisi/operations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/operations.py b/pisi/operations.py index 05ea3d3f..0f3b9a45 100644 --- a/pisi/operations.py +++ b/pisi/operations.py @@ -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