summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeViewGtk.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-01-09 10:53:00 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2006-01-09 10:53:00 +0100
commitf944e19b685708007bb2eaf76959fcd50da7ade9 (patch)
tree3cb836127ff556066e6e03a17938c68c4acbd1ef /DistUpgrade/DistUpgradeViewGtk.py
parentd7093cd4e9873a637da1ea81facad09c2d735879 (diff)
downloadpython-apt-f944e19b685708007bb2eaf76959fcd50da7ade9.tar.gz
* missing "{k,edu,}ubuntu-desktop" detection added
Diffstat (limited to 'DistUpgrade/DistUpgradeViewGtk.py')
-rw-r--r--DistUpgrade/DistUpgradeViewGtk.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py
index dbb97c0a..f34b791d 100644
--- a/DistUpgrade/DistUpgradeViewGtk.py
+++ b/DistUpgrade/DistUpgradeViewGtk.py
@@ -60,6 +60,20 @@ class GtkFetchProgressAdapter(apt.progress.FetchProgress):
# if this is set to false the download will cancel
self.status = parent.label_extra_status
self.progress = parent.progressbar_cache
+ def mediaChange(self, medium, drive):
+ #print "mediaChange %s %s" % (medium, drive)
+ msg = _("Please insert '%s' into the drive '%s'" % (medium,drive))
+ dialog = gtk.MessageDialog(parent=self.main,
+ flags=gtk.DIALOG_MODAL,
+ type=gtk.MESSAGE_QUESTION,
+ buttons=gtk.BUTTONS_OK_CANCEL)
+ dialog.set_markup(msg)
+ res = dialog.run()
+ #print res
+ dialog.destroy()
+ if res == gtk.RESPONSE_OK:
+ return True
+ return False
def start(self):
#self.progress.show()
self.progress.set_fraction(0)