From: Stefan Pluecken Date: Wed, 22 Feb 2006 16:34:38 +0000 (+0000) Subject: remove Upgrade plugin X-Git-Tag: 2.6.0~4061 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/ab32bd33272b73f046cdfbe744ca9517f91d653d remove Upgrade plugin --- diff --git a/lib/python/Plugins/update/plugin.py b/lib/python/Plugins/update/plugin.py index 56c1dfd9..6b094f30 100644 --- a/lib/python/Plugins/update/plugin.py +++ b/lib/python/Plugins/update/plugin.py @@ -96,52 +96,6 @@ class IPKGSource(Screen): print "pressed", number self["text"].number(number) -class Upgrade(Screen): - skin = """ - - - """ - - def __init__(self, session, args = None): - self.skin = Upgrade.skin - Screen.__init__(self, session) - - self["text"] = ScrollLabel(_("Updating... Please wait... This can take some minutes...")) - self["actions"] = ActionMap(["WizardActions", "DirectionActions"], - { - "ok": self.cancel, - "back": self.cancel, - "up": self["text"].pageUp, - "down": self["text"].pageDown - }, -1) - - self.container = eConsoleAppContainer() - self.run = 0 - self.container.appClosed.get().append(self.updateFinished) - self.container.dataAvail.get().append(self.dataAvail) - self.onLayoutFinish.append(self.startUpdate) # dont start before gui is finished - - def startUpdate(self): - self["text"].setText(_("Update Progress:") + "\n\n") - self.container.execute("ipkg update") - - def updateFinished(self, retval): - if self.run == 0: - self.run = 1 - self.container.execute("ipkg upgrade -force-defaults -force-overwrite") - elif self.run == 1: - str = self["text"].getText() - str += _("Updating finished!!"); - self["text"].setText(str) - self.run = 2 - - def cancel(self): - if self.run == 2: - self.close() - - def dataAvail(self, str): - self["text"].setText(self["text"].getText() + str) - RT_HALIGN_LEFT = 0 RT_HALIGN_RIGHT = 1 RT_HALIGN_CENTER = 2