diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-10-29 16:01:37 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-10-29 16:01:37 +0000 |
| commit | 7b0d371a7bbfb9e8d624eec9ed97e9a835f75ca7 (patch) | |
| tree | e56e0c595b26b40bc5da2b75e8e384a373ae3ada /lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py | |
| parent | d7b1e65daf11504f1d3bb270d574d9022c45d97f (diff) | |
| download | enigma2-7b0d371a7bbfb9e8d624eec9ed97e9a835f75ca7.tar.gz enigma2-7b0d371a7bbfb9e8d624eec9ed97e9a835f75ca7.zip | |
some ipkg changes.. (done by ritzmo)
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py')
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py b/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py index 505b0cdd..c283dd04 100644 --- a/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py +++ b/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py @@ -290,6 +290,12 @@ class UpdatePlugin(Screen): elif event == IpkgComponent.EVENT_CONFIGURING: self.package.setText(param) self.status.setText(_("Configuring")) + elif event == IpkgComponent.EVENT_MODIFIED: + self.session.openWithCallback( + self.modificationCallback, + MessageBox, + _("A configuration file (%s) was modified since Installation.\nDo you want to keep your version?") % (param) + ) elif event == IpkgComponent.EVENT_ERROR: self.error += 1 elif event == IpkgComponent.EVENT_DONE: @@ -315,7 +321,10 @@ class UpdatePlugin(Screen): self.status.setText(_("Error") + " - " + error) #print event, "-", param pass - + + def modificationCallback(self, res): + self.ipkg.write(res and "N" or "Y") + def exit(self): if not self.ipkg.isRunning(): if self.packages != 0 and self.error == 0: |
