From da5e34af58b45278f93073ee5ef06d9ab398b4f6 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Thu, 21 Sep 2006 12:26:26 +0000 Subject: [PATCH] * This is also wrong for upgrades. Suppose there is an upgrade for B with added dependency C, and there is no upgrade for A. If you write "pisi upgrade A B" there will be and extra install C but with this code it wont be recognized. --- pisi/operations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/operations.py b/pisi/operations.py index f51fa62c..62f774c1 100644 --- a/pisi/operations.py +++ b/pisi/operations.py @@ -444,7 +444,7 @@ def upgrade_pkg_names(A = []): G_f, order = plan_upgrade(A, ignore_build) else: G_f = None - order = A + order = list(A) ctx.ui.info(_('The following packages will be upgraded: ') + util.strlist(order)) @@ -456,7 +456,7 @@ def upgrade_pkg_names(A = []): if ctx.get_option('dry_run'): return - if len(order) > len(A_0): + if set(order) - A_0: if not ctx.ui.confirm(_('There are extra packages due to dependencies. Do you want to continue?')): return False