from Components.Label import Label
from Components.Slider import Slider
from Screens.Screen import Screen
+from Screens.MessageBox import MessageBox
from enigma import eTimer
class Ipkg(Screen):
Screen.__init__(self, session)
self.cmdList = cmdList
+
+ self.sliderPackages = {}
self.slider = Slider(0, len(cmdList))
self["slider"] = self.slider
self.error += 1
elif event == IpkgComponent.EVENT_DONE:
self.runNextCmd()
-
+ 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)
+ )
+
+ def modificationCallback(self, res):
+ self.ipkg.write(res and "N" or "Y")
+
def exit(self):
- self.close()
+ if not self.ipkg.isRunning():
+ self.close()