summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeView.py
diff options
context:
space:
mode:
Diffstat (limited to 'DistUpgrade/DistUpgradeView.py')
-rw-r--r--DistUpgrade/DistUpgradeView.py8
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