From 4e3be17bd03a0b279d8daa7ecf04d984bca9dfb7 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Tue, 19 Sep 2006 09:09:17 +0000 Subject: [PATCH] len usage is wrong. We have to see that if there is really an extra package to be installed. --- pisi/operations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/operations.py b/pisi/operations.py index da948340..d65249ad 100644 --- a/pisi/operations.py +++ b/pisi/operations.py @@ -321,7 +321,7 @@ def install_pkg_names(A, reinstall = False): G_f, order = plan_install_pkg_names(A) else: G_f = None - order = A + order = list(A) if len(order) > 1: ctx.ui.info(_("Following packages will be installed in the respective " @@ -334,7 +334,7 @@ def install_pkg_names(A, reinstall = False): 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