From dea5b268fe886d6c596137b3afde91939587549e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Mon, 26 Dec 2005 02:58:02 +0000 Subject: [PATCH] * fix: notify packages to go --- pisi/operations.py | 12 ++++++++++-- pisi/ui.py | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/pisi/operations.py b/pisi/operations.py index f5f3873f..0552d880 100644 --- a/pisi/operations.py +++ b/pisi/operations.py @@ -151,6 +151,8 @@ in the respective order to satisfy extra dependencies: if ctx.get_option('dry_run'): return + ctx.ui.notify(ui.packagestogo, order = order) + for x in order: atomicoperations.install_single_file(dfn[x]) @@ -225,6 +227,9 @@ in the respective order to satisfy dependencies: if len(order) > len(A_0): if not ctx.ui.confirm(_('There are extra packages due to dependencies. Do you want to continue?')): return False + + ctx.ui.notify(ui.packagestogo, order = order) + for x in order: atomicoperations.install_single_name(x) @@ -320,6 +325,8 @@ def upgrade_pkg_names(A = []): if not ctx.ui.confirm(_('There are extra packages due to dependencies. Do you want to continue?')): return False + ctx.ui.notify(ui.packagestogo, order = order) + install_ops = [atomicoperations.Install.from_name(x) for x in order] for install in install_ops: @@ -449,14 +456,15 @@ in the respective order to satisfy dependencies: if ctx.get_option('dry_run'): return - + + ctx.ui.notify(ui.packagestogo, order = order) + for x in order: if ctx.installdb.is_installed(x): atomicoperations.remove_single(x) else: ctx.ui.info(_('Package %s is not installed. Cannot remove.') % x) - def plan_remove(A): # try to construct a pisi graph of packages to # install / reinstall diff --git a/pisi/ui.py b/pisi/ui.py index c2d1ca13..cc548ac1 100644 --- a/pisi/ui.py +++ b/pisi/ui.py @@ -20,7 +20,7 @@ import pisi import pisi.context as ctx (installed, upgraded, removed, installing, removing, - configuring, configured, extracting, downloading) = range(9) + configuring, configured, extracting, downloading, packagestogo) = range(10) class UI(object): "Abstract class for UI operations, derive from this."