From 0704ed7155433750011e128550a8fb55d94121c0 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 5 Sep 2006 13:18:47 +0200 Subject: * DistUpgrade/forced_obsoletes.txt: - no longer needed, part of DistUpgrade.cfg now * DistUpgrade/mirrors.txt, DistUpgrade/removal_blacklist.txt: - renamed for consitency * DistUpgrade/DistUpgrade.cfg, DistUpgrade/DistUpgradeCache.py: - added "RemovalBlacklistFile" instead of hardcoding it * DistUpgrade/DistUpgradeConfigParser.py: - added "datadir" to constructor * DistUpgrade/DistUpgradeControler.py: - added datadir * DistUpgrade/DistUpgradeView.py: - added "hideStep()" method - added STEP_PREPARE, STEP_MODIFY_SOURCES, STEP_FETCH_INSTALL, STEP_CLEANUP, STEP_REBOOT * DistUpgrade/DistUpgradeViewGtk.py: - implemendted hideStep() - added datadir arguemnt for constructor * dist-upgrade.py - run it with the "." as arguemnt for the config * UpdateManager/UpdateManager.py: - if it can't be updated, ask about a dist-upgrade instead * update-manager. - added --dist-upgrade * po/*.po - make update-po --- DistUpgrade/DistUpgradeView.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'DistUpgrade/DistUpgradeView.py') diff --git a/DistUpgrade/DistUpgradeView.py b/DistUpgrade/DistUpgradeView.py index 27817b13..9fda83d4 100644 --- a/DistUpgrade/DistUpgradeView.py +++ b/DistUpgrade/DistUpgradeView.py @@ -44,7 +44,13 @@ class DumbTerminal(object): def call(self, cmd): " expects a command in the subprocess style (as a list) " subprocess.call(cmd) - + + +(STEP_PREPARE, + STEP_MODIFY_SOURCES, + STEP_FETCH_INSTALL, + STEP_CLEANUP, + STEP_REBOOT) = range(1,6) class DistUpgradeView(object): " abstraction for the upgrade view " @@ -75,6 +81,9 @@ class DistUpgradeView(object): 5. Complete """ pass + def hideStep(self, step): + " hide a certain step from the GUI " + pass def confirmChanges(self, summary, changes, downloadSize, actions=None): """ display the list of changed packages (apt.Package) and return if the user confirms them -- cgit v1.2.3