From f6444644dc9601b4cbfdf2b621c77741a367b778 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 30 Mar 2006 16:11:04 +0200 Subject: * DumbTerminal.run() -> DumbTerminal.call() --- DistUpgrade/DistUpgradeView.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'DistUpgrade/DistUpgradeView.py') diff --git a/DistUpgrade/DistUpgradeView.py b/DistUpgrade/DistUpgradeView.py index 02894939..14ac5208 100644 --- a/DistUpgrade/DistUpgradeView.py +++ b/DistUpgrade/DistUpgradeView.py @@ -20,7 +20,7 @@ # USA class DumbTerminal(object): - def run(self, cmd): + def call(self, cmd): " expects a command in the subprocess style (as a list) " subprocess.call(cmd) -- cgit v1.2.3 From f6ebff3d202238ae73942212b97096535c63b5e1 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 3 Apr 2006 16:27:28 +0200 Subject: * DistUpgrade/DistUpgradeViewNonInteractive.py: - fix the non-interactive confirmChanges() view method --- DistUpgrade/DistUpgradeView.py | 2 +- DistUpgrade/DistUpgradeViewNonInteractive.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'DistUpgrade/DistUpgradeView.py') diff --git a/DistUpgrade/DistUpgradeView.py b/DistUpgrade/DistUpgradeView.py index 14ac5208..57b94636 100644 --- a/DistUpgrade/DistUpgradeView.py +++ b/DistUpgrade/DistUpgradeView.py @@ -54,7 +54,7 @@ class DistUpgradeView(object): 5. Complete """ pass - def confirmChanges(self, summary, changes, downloadSize): + def confirmChanges(self, summary, changes, downloadSize, actions=None): """ display the list of changed packages (apt.Package) and return if the user confirms them """ diff --git a/DistUpgrade/DistUpgradeViewNonInteractive.py b/DistUpgrade/DistUpgradeViewNonInteractive.py index 7a8fa7eb..dbf38387 100644 --- a/DistUpgrade/DistUpgradeViewNonInteractive.py +++ b/DistUpgrade/DistUpgradeViewNonInteractive.py @@ -60,8 +60,8 @@ class DistUpgradeViewNonInteractive(DistUpgradeView): 5. Complete """ pass - def confirmChanges(self, summary, changes, downloadSize): - DistUpgradeView.confirmChanges(self, summary, changes, downloadSize) + def confirmChanges(self, summary, changes, downloadSize, actions=None): + DistUpgradeView.confirmChanges(self, summary, changes, downloadSize, actions) logging.debug("toinstall: '%s'" % self.toInstall) logging.debug("toupgrade: '%s'" % self.toUpgrade) logging.debug("toremove: '%s'" % self.toRemove) -- cgit v1.2.3