diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-05 13:18:47 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-05 13:18:47 +0200 |
| commit | 0704ed7155433750011e128550a8fb55d94121c0 (patch) | |
| tree | 1b84dd739467e8329988140486ccb8d5528525a7 /DistUpgrade/DistUpgradeView.py | |
| parent | 6d41b5e07b5b58a0d14e4ef12f4c39c658e6da5c (diff) | |
| download | python-apt-0704ed7155433750011e128550a8fb55d94121c0.tar.gz | |
* 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
Diffstat (limited to 'DistUpgrade/DistUpgradeView.py')
| -rw-r--r-- | DistUpgrade/DistUpgradeView.py | 11 |
1 files changed, 10 insertions, 1 deletions
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 |
