aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-10-17 22:37:39 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-10-17 22:37:39 +0000
commit948213ba7e5d1bc6a9c4d7f5f9d35c53186b60d3 (patch)
tree5a6d10d8ebcc2aa4ce9d71b53613552e18792f6e
parent226d5ace683c1ac845d3a00fd9f5d2489c2eddcd (diff)
downloadenigma2-948213ba7e5d1bc6a9c4d7f5f9d35c53186b60d3.tar.gz
enigma2-948213ba7e5d1bc6a9c4d7f5f9d35c53186b60d3.zip
ask user to reboot dreambox after software update
-rw-r--r--lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py13
-rw-r--r--lib/python/Screens/Console.py6
-rw-r--r--po/de.po56
3 files changed, 47 insertions, 28 deletions
diff --git a/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py b/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py
index c0649b13..e12729b5 100644
--- a/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py
+++ b/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py
@@ -7,6 +7,7 @@ from Components.GUIComponent import *
from Components.MenuList import MenuList
from Components.Input import Input
from Screens.Console import Console
+from Screens.MessageBox import MessageBox
from Plugins.Plugin import PluginDescriptor
from Screens.ImageWizard import ImageWizard
@@ -57,9 +58,19 @@ class UpdatePluginMenu(Screen):
self.session.open(Ipkg)
elif (self["menu"].l.getCurrentSelection()[1] == "setup"):
self.session.open(MessageBox, _("Function not yet implemented"), MessageBox.TYPE_ERROR)
+
def runUpgrade(self, result):
if result:
- self.session.open(Console, title = "Upgrade running...", cmdlist = ["ipkg update", "ipkg upgrade -force-defaults -force-overwrite"])
+ self.session.open(Console, title = "Upgrade running...", cmdlist = ["ipkg update", "ipkg upgrade -force-defaults -force-overwrite"], finishedCallback = self.runFinished)
+
+ def runFinished(self):
+ self.session.openWithCallback(self.reboot, MessageBox, _("Upgrade finished. Do you want to reboot your Dreambox?"), MessageBox.TYPE_YESNO)
+
+ def reboot(self, result):
+ if result is None:
+ return
+ if result:
+ quitMainloop(3)
class IPKGSource(Screen):
skin = """
diff --git a/lib/python/Screens/Console.py b/lib/python/Screens/Console.py
index 98c373d5..03b0249b 100644
--- a/lib/python/Screens/Console.py
+++ b/lib/python/Screens/Console.py
@@ -10,10 +10,12 @@ class Console(Screen):
<widget name="text" position="0,0" size="550,400" font="Regular;15" />
</screen>"""
- def __init__(self, session, title = "Console", cmdlist = None):
+ def __init__(self, session, title = "Console", cmdlist = None, finishedCallback = None):
self.skin = Console.skin
Screen.__init__(self, session)
+ self.finishedCallback = finishedCallback
+
self["text"] = ScrollLabel("")
self["actions"] = ActionMap(["WizardActions", "DirectionActions"],
{
@@ -50,6 +52,8 @@ class Console(Screen):
str = self["text"].getText()
str += _("Execution finished!!");
self["text"].setText(str)
+ if self.finishedCallback is not None:
+ self.finishedCallback()
def cancel(self):
if self.run == len(self.cmdlist):
diff --git a/po/de.po b/po/de.po
index b59c9d46..b8afdfae 100644
--- a/po/de.po
+++ b/po/de.po
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: tuxbox-enigma 0.0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-10-17 00:28+0200\n"
-"PO-Revision-Date: 2006-10-17 00:31+0100\n"
+"POT-Creation-Date: 2006-10-18 00:34+0200\n"
+"PO-Revision-Date: 2006-10-18 00:36+0100\n"
"Last-Translator: \n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -117,7 +117,7 @@ msgstr "<unbekannt>"
#: ../lib/python/Screens/Setup.py:118
msgid "??"
-msgstr ""
+msgstr "Aktualisierung beendet. Möchten Sie Ihre Dreambox nun neu starten?"
#: ../lib/python/Components/NimManager.py:773
msgid "A"
@@ -159,7 +159,7 @@ msgstr "Bild in Bild aktivieren"
msgid "Add"
msgstr "Hinzufügen"
-#: ../lib/python/Screens/MediaPlayer.py:388
+#: ../lib/python/Screens/MediaPlayer.py:389
msgid "Add files to playlist"
msgstr "Dateien zur Wiedergabeliste hinzufügen"
@@ -168,7 +168,7 @@ msgstr "Dateien zur Wiedergabeliste hinzufügen"
msgid "Add timer"
msgstr "Timer setzen"
-#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:31
+#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:32
msgid "Advanced"
msgstr "Erweitert"
@@ -308,7 +308,7 @@ msgstr "Kanal"
msgid "Channel:"
msgstr "Kanal:"
-#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:33
+#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:34
msgid "Choose source"
msgstr "Quelle wählen"
@@ -478,8 +478,8 @@ msgstr ""
msgid "Do you want to resume this playback?"
msgstr "Möchten Sie die Wiedergabe an der letzten Stelle fortsetzen?"
-#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:50
-#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:202
+#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:51
+#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:213
msgid ""
"Do you want to update your Dreambox?\n"
"After pressing OK, please wait!"
@@ -555,11 +555,11 @@ msgstr "Öffne Hauptmenü"
msgid "Enter the service pin"
msgstr "Geben Sie den Kanal-Pincode ein"
-#: ../lib/python/Screens/Console.py:41
+#: ../lib/python/Screens/Console.py:43
msgid "Execution Progress:"
msgstr "Ausführen eines externen Befehls:"
-#: ../lib/python/Screens/Console.py:51
+#: ../lib/python/Screens/Console.py:53
msgid "Execution finished!!"
msgstr "Ausführung beendet!"
@@ -609,7 +609,7 @@ msgstr "Freitag"
msgid "Frontprocessor version: %d"
msgstr "Frontprozessor-Version: %d"
-#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:59
+#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:60
msgid "Function not yet implemented"
msgstr "Funktion noch nicht eingebaut"
@@ -667,7 +667,7 @@ msgstr "IP-Adresse"
msgid "Icelandic"
msgstr "Isländisch"
-#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:29
+#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:30
msgid "Image-Upgrade"
msgstr "Image-Aktualisierung"
@@ -934,11 +934,11 @@ msgstr "An"
msgid "One"
msgstr "Eins"
-#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:30
+#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:31
msgid "Online-Upgrade"
msgstr "Online-Aktualisierung"
-#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:34
+#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:35
msgid "Packet management"
msgstr "Paketverwaltung"
@@ -1120,7 +1120,7 @@ msgstr "Plugins entfernen"
msgid "Repeat Type"
msgstr "Wiederholungstyp"
-#: ../lib/python/Screens/MediaPlayer.py:389
+#: ../lib/python/Screens/MediaPlayer.py:390
msgid "Replace current playlist"
msgstr "Aktuelle Wiedergabeliste ersetzen"
@@ -1202,7 +1202,7 @@ msgstr "Kanäle"
msgid "Set limits"
msgstr "Limits setzen"
-#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:35
+#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:36
msgid "Settings"
msgstr "Einstellungen"
@@ -1504,14 +1504,18 @@ msgstr "Uncommitted DiSEqC Befehl"
msgid "Universal LNB"
msgstr "Universal-LNB"
-#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:211
+#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:222
msgid "Updating finished. Here is the result:"
msgstr "Aktualisierung beendet. Hier das Ergebnis:"
-#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:217
+#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:228
msgid "Updating... Please wait... This can take some minutes..."
msgstr "Update wird durchgeführt. Bitte warten. Der Vorgang kann einige Minuten dauern."
+#: ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py:67
+msgid "Upgrade finished. Do you want to reboot your Dreambox?"
+msgstr ""
+
#: ../lib/python/Screens/NetworkSetup.py:27
#: ../data/
msgid "Use DHCP"
@@ -1573,7 +1577,7 @@ msgstr "Sie können dies nicht löschen."
msgid "You have to wait for"
msgstr "Sie müssen noch für"
-#: ../lib/python/Screens/MediaPlayer.py:390
+#: ../lib/python/Screens/MediaPlayer.py:391
msgid "You selected a playlist"
msgstr "Sie haben eine Wiedergabeliste ausgewählt"
@@ -1613,11 +1617,11 @@ msgstr "startet gleich"
msgid "add bouquet"
msgstr "Bouquet einfügen"
-#: ../lib/python/Screens/MediaPlayer.py:337
+#: ../lib/python/Screens/MediaPlayer.py:338
msgid "add directory to playlist"
msgstr "Verzeichnis zur Wiedergabeliste hinzufügen"
-#: ../lib/python/Screens/MediaPlayer.py:339
+#: ../lib/python/Screens/MediaPlayer.py:340
msgid "add file to playlist"
msgstr "Datei zur Wiedergabeliste hinzufügen"
@@ -1686,7 +1690,7 @@ msgstr "links-zirkular"
msgid "circular right"
msgstr "rechts-zirkular"
-#: ../lib/python/Screens/MediaPlayer.py:343
+#: ../lib/python/Screens/MediaPlayer.py:344
msgid "clear playlist"
msgstr "Wiedergabeliste leeren"
@@ -1706,7 +1710,7 @@ msgstr "In Favoriten kopieren"
msgid "daily"
msgstr "täglich"
-#: ../lib/python/Screens/MediaPlayer.py:342
+#: ../lib/python/Screens/MediaPlayer.py:343
msgid "delete"
msgstr "Löschen"
@@ -1775,7 +1779,7 @@ msgstr "Box abschalten"
msgid "hear radio..."
msgstr "Radio hören"
-#: ../lib/python/Screens/MediaPlayer.py:344
+#: ../lib/python/Screens/MediaPlayer.py:345
msgid "hide player"
msgstr "Player ausblenden"
@@ -2029,11 +2033,11 @@ msgstr "Aufnahme anhalten"
msgid "stop timeshift"
msgstr "Timeshift beenden"
-#: ../lib/python/Screens/MediaPlayer.py:341
+#: ../lib/python/Screens/MediaPlayer.py:342
msgid "switch to filelist"
msgstr "In Dateiliste wechseln"
-#: ../lib/python/Screens/MediaPlayer.py:335
+#: ../lib/python/Screens/MediaPlayer.py:336
msgid "switch to playlist"
msgstr "In Wiedergabeliste wechseln"