diff options
| author | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-03-30 17:46:30 +0200 |
|---|---|---|
| committer | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-03-30 17:46:30 +0200 |
| commit | 5a63844ce935b881165ea3e506a381786c6e2df9 (patch) | |
| tree | d8c65e4d2d8074b1d90f4d12eee47741757e0b48 /DistUpgrade/DistUpgradeView.py | |
| parent | 3aa98f64592d44a6c65ad1bac11e03292c7deb39 (diff) | |
| parent | c4020d3179f287120da0c566cbae3a6034946637 (diff) | |
| download | python-apt-5a63844ce935b881165ea3e506a381786c6e2df9.tar.gz | |
merged from mvo
Diffstat (limited to 'DistUpgrade/DistUpgradeView.py')
| -rw-r--r-- | DistUpgrade/DistUpgradeView.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/DistUpgrade/DistUpgradeView.py b/DistUpgrade/DistUpgradeView.py index 8e9a3d3f..02894939 100644 --- a/DistUpgrade/DistUpgradeView.py +++ b/DistUpgrade/DistUpgradeView.py @@ -19,6 +19,12 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA +class DumbTerminal(object): + def run(self, cmd): + " expects a command in the subprocess style (as a list) " + subprocess.call(cmd) + + class DistUpgradeView(object): " abstraction for the upgrade view " def __init__(self): @@ -32,6 +38,8 @@ class DistUpgradeView(object): def getInstallProgress(self): " return a install progress object " return apt.progress.InstallProgress() + def getTerminal(self): + return DumbTerminal() def updateStatus(self, msg): """ update the current status of the distUpgrade based on the current view |
