def runFinished(self, retval): if self.check_settings: self.check_settings = False self.runSettingsInstall() return self.remainingdata = "" if self.run == 0: self.run = 1 if self.type == self.DOWNLOAD: self.startIpkgListInstalled() elif self.run == 1 and self.type == self.DOWNLOAD: self.run = 2 from Components import opkg pluginlist = [] self.pluginlist = pluginlist for plugin in opkg.enumPlugins(self.PLUGIN_PREFIX): if plugin[0] not in self.installedplugins: pluginlist.append(plugin + (plugin[0][15:],)) for plugin in opkg.enumPlugins('kernel-module'): if plugin[0] not in self.installedplugins: pkg = 'modules-'+'-'.join(plugin[0].split('-')[2:]) pluginlist.append(plugin + (pkg,)) if pluginlist: pluginlist.sort() self.updateList() self["list"].instance.show() else: self["text"].setText(_("No new plugins found")) else: if self.pluginlist: self.updateList() self["list"].instance.show() else: self["text"].setText(_("No new plugins found"))
def runFinished(self, retval): if self.check_settings: self.check_settings = False self.runSettingsInstall() return self.remainingdata = "" if self.run == 0: self.run = 1 if self.type == self.DOWNLOAD: self.startIpkgListInstalled() elif self.run == 1 and self.type == self.DOWNLOAD: self.run = 2 from Components import opkg pluginlist = [] self.pluginlist = pluginlist for plugin in opkg.enumPlugins(self.PLUGIN_PREFIX): if plugin[0] not in self.installedplugins: pluginlist.append(plugin + (plugin[0][15:], )) for plugin in opkg.enumPlugins('kernel-module'): if plugin[0] not in self.installedplugins: pkg = 'modules-' + '-'.join(plugin[0].split('-')[2:]) pluginlist.append(plugin + (pkg, )) if pluginlist: pluginlist.sort() self.updateList() self["list"].instance.show() else: self["text"].setText(_("No new plugins found")) else: if self.pluginlist: self.updateList() self["list"].instance.show() else: self["text"].setText(_("No new plugins found"))
def runFinished(self, retval): if self.check_settings: self.check_settings = False self.runSettingsInstall() return if self.check_bootlogo: self.check_bootlogo = False self.runSettingsInstall() return self.remainingdata = "" if self.run == 0: self.run = 1 if self.type == self.DOWNLOAD: self.startIpkgListInstalled() elif self.run == 1 and self.type == self.DOWNLOAD: self.run = 2 from Components import opkg pluginlist = [] self.pluginlist = pluginlist for plugin in opkg.enumPlugins(self.PLUGIN_PREFIX): if plugin[0] not in self.installedplugins and ((not config.pluginbrowser.po.getValue() and not plugin[0].endswith('-po')) or config.pluginbrowser.po.getValue()) and ((not config.pluginbrowser.src.getValue() and not plugin[0].endswith('-src')) or config.pluginbrowser.src.getValue()): pluginlist.append(plugin + (plugin[0][15:],)) if pluginlist: pluginlist.sort() self.updateList() self["list"].instance.show() else: self["text"].setText(_("No new plugins found")) else: if self.pluginlist: self.updateList() self["list"].instance.show() else: if self.type == self.DOWNLOAD: self["text"].setText(_("Sorry feeds are down for maintenance"))
def runFinished(self, retval): if self.check_settings: self.check_settings = False self.runSettingsInstall() return self.remainingdata = '' if self.run == 0: self.run = 1 if self.type == self.DOWNLOAD: self.startIpkgListInstalled() elif self.run == 1 and self.type == self.DOWNLOAD: self.run = 2 from Components import opkg pluginlist = [] self.pluginlist = pluginlist for plugin in opkg.enumPlugins(self.PLUGIN_PREFIX): if plugin[0] not in self.installedplugins: pluginlist.append(plugin + (plugin[0][15:], )) if pluginlist: pluginlist.sort() self.updateList() self['list'].instance.show() else: self['text'].setText(_('No new plugins found')) elif self.pluginlist: self.updateList() self['list'].instance.show() else: self['text'].setText(_('No new plugins found'))
def runFinished(self, retval): if self.check_settings: self.check_settings = False self.runSettingsInstall() return if self.check_bootlogo: self.check_bootlogo = False self.runSettingsInstall() return self.remainingdata = "" if self.run == 0: self.run = 1 if self.type == self.DOWNLOAD: self.startIpkgListInstalled() elif self.run == 1 and self.type == self.DOWNLOAD: self.run = 2 from Components import opkg pluginlist = [] self.pluginlist = pluginlist for plugin in opkg.enumPlugins(self.PLUGIN_PREFIX): if plugin[0] not in self.installedplugins: pluginlist.append(plugin + (plugin[0][15:],)) if pluginlist: pluginlist.sort() self.updateList() self["list"].instance.show() else: self["text"].setText(_("No new plugins found")) else: if self.pluginlist: self.updateList() self["list"].instance.show() else: if self.type == self.DOWNLOAD: self["text"].setText(_("Sorry feeds are down for maintenance"))
def runFinished(self, retval): if self.check_settings: self.check_settings = False self.runSettingsInstall() return self.remainingdata = '' if self.run == 0: self.run = 1 if self.type == self.DOWNLOAD: self.startIpkgListInstalled() elif self.run == 1 and self.type == self.DOWNLOAD: self.run = 2 from Components import opkg pluginlist = [] self.pluginlist = pluginlist for plugin in opkg.enumPlugins(self.PLUGIN_PREFIX): if plugin[0] not in self.installedplugins: pluginlist.append(plugin + (plugin[0][15:],)) if pluginlist: pluginlist.sort() self.updateList() self['list'].instance.show() else: self['text'].setText(_('No new plugins found')) elif self.pluginlist: self.updateList() self['list'].instance.show() else: self['text'].setText(_('No new plugins found'))
def runFinished(self, retval): if self.check_settings: self.check_settings = False self.runSettingsInstall() return if self.check_bootlogo: self.check_bootlogo = False self.runSettingsInstall() return self.remainingdata = "" if self.run == 0: self.run = 1 if self.type == self.DOWNLOAD: self.startIpkgListInstalled() elif self.run == 1 and self.type == self.DOWNLOAD: self.run = 2 from Components import opkg pluginlist = [] self.pluginlist = pluginlist for plugin in opkg.enumPlugins(self.PLUGIN_PREFIX): if not plugin[0].endswith('-meta') and plugin[0] not in self.installedplugins and ((not config.pluginbrowser.po.value and not plugin[0].endswith('-po')) or config.pluginbrowser.po.value) and ((not config.pluginbrowser.src.value and not plugin[0].endswith('-src')) or config.pluginbrowser.src.value): pluginlist.append(plugin + (plugin[0][15:],)) if pluginlist: pluginlist.sort() self.updateList() self["list"].instance.show() else: self["text"].setText(_("No new plugins found")) else: if self.pluginlist: self.updateList() self["list"].instance.show() else: if self.type == self.DOWNLOAD: self["text"].setText(_("Can not retrieve data from feed server. Check your internet connection and try again later."))
def runFinished(self, retval): if self.check_settings: self.check_settings = False self.runSettingsInstall() return if self.check_bootlogo: self.check_bootlogo = False self.runSettingsInstall() return self.remainingdata = "" if self.run == 0: self.run = 1 if self.type == self.DOWNLOAD: self.startIpkgListInstalled() elif self.run == 1 and self.type == self.DOWNLOAD: self.run = 2 from Components import opkg pluginlist = [] self.pluginlist = pluginlist for plugin in opkg.enumPlugins(self.PLUGIN_PREFIX): if not plugin[0].endswith('-common') and not plugin[0].endswith('-meta') and plugin[0] not in self.installedplugins and ((not config.pluginbrowser.po.value and not plugin[0].endswith('-po')) or config.pluginbrowser.po.value) and ((not config.pluginbrowser.src.value and not plugin[0].endswith('-src')) or config.pluginbrowser.src.value): pluginlist.append(plugin + (plugin[0][15:],)) for plugin in opkg.enumPlugins('kernel-module'): if plugin[0] not in self.installedplugins: pkg = 'modules-'+'-'.join(plugin[0].split('-')[2:]) pluginlist.append(plugin + (pkg,)) if pluginlist: self["text"].hide() pluginlist.sort() self.updateList() self["list"].instance.show() else: self["text"].setText(_("No new plugins found")) else: self["text"].hide() if self.pluginlist: self.updateList() self["list"].instance.show() else: if self.type == self.DOWNLOAD: self["text"].setText(_("Sorry the feeds are down for maintenance"))
def runFinished(self, retval): if self.check_settings: self.check_settings = False self.runSettingsInstall() return if self.check_bootlogo: self.check_bootlogo = False self.runSettingsInstall() return self.remainingdata = "" if self.run == 0: self.run = 1 if self.type == self.DOWNLOAD: self.startIpkgListInstalled() elif self.run == 1 and self.type == self.DOWNLOAD: self.run = 2 from Components import opkg pluginlist = [] self.pluginlist = pluginlist for plugin in opkg.enumPlugins(self.PLUGIN_PREFIX): if not plugin[0].endswith('-common') and not plugin[ 0].endswith('-meta') and plugin[ 0] not in self.installedplugins and ( (not config.pluginbrowser.po.value and not plugin[0].endswith('-po')) or config.pluginbrowser.po.value) and ( (not config.pluginbrowser.src.value and not plugin[0].endswith('-src')) or config.pluginbrowser.src.value): pluginlist.append(plugin + (plugin[0][15:], )) if pluginlist: self["text"].hide() pluginlist.sort() self.updateList() self["list"].instance.show() else: self["text"].setText(_("No new plugins found")) else: self["text"].hide() if self.pluginlist: self.updateList() self["list"].instance.show() else: if self.type == self.DOWNLOAD: self["text"].setText( _("Can not retrieve data from feed server. Check your internet connection and try again later." ))
def runFinished(self, retval): if self.check_settings: self.check_settings = False self.runSettingsInstall() return if self.check_bootlogo: self.check_bootlogo = False self.runSettingsInstall() return self.remainingdata = '' if self.run == 0: self.run = 1 if self.type == self.UPDATE: self.type = self.DOWNLOAD self.startIpkgListInstalled() elif self.run == 1 and self.type == self.DOWNLOAD: self.run = 2 from Components import opkg pluginlist = [] self.pluginlist = pluginlist for plugin in opkg.enumPlugins(self.PLUGIN_PREFIX): if not plugin[0].endswith('-common') and not plugin[ 0].endswith('-meta') and plugin[ 0] not in self.installedplugins and ( not config.pluginbrowser.po.value and not plugin[0].endswith('-po') or config.pluginbrowser.po.value) and ( not config.pluginbrowser.src.value and not plugin[0].endswith('-src') or config.pluginbrowser.src.value): pluginlist.append(plugin + (plugin[0][15:], )) if pluginlist: self['text'].hide() pluginlist.sort() self.updateList() self['list'].instance.show() else: self['text'].setText(_('No new plugins found')) elif len(self.pluginlist) > 0: self.updateList() self['list'].instance.show() elif self.type == self.DOWNLOAD: self['text'].setText(_('Sorry feeds are down for maintenance'))
def runFinished(self, retval): if self.check_settings: self.check_settings = False self.runSettingsInstall() return if self.check_bootlogo: self.check_bootlogo = False self.runSettingsInstall() return self.remainingdata = '' if self.run == 0: self.run = 1 if self.type == self.UPDATE: self.type = self.DOWNLOAD self.startIpkgListInstalled() elif self.run == 1 and self.type == self.DOWNLOAD: self.run = 2 from Components import opkg pluginlist = [] self.pluginlist = pluginlist for plugin in opkg.enumPlugins(self.PLUGIN_PREFIX): if not plugin[0].endswith('-common') and not plugin[0].endswith('-meta') and plugin[0] not in self.installedplugins and (not config.pluginbrowser.po.value and not plugin[0].endswith('-po') or config.pluginbrowser.po.value) and (not config.pluginbrowser.src.value and not plugin[0].endswith('-src') or config.pluginbrowser.src.value): pluginlist.append(plugin + (plugin[0][15:],)) if pluginlist: self['text'].hide() pluginlist.sort() self.updateList() self['list'].instance.show() else: self['text'].setText(_('No new plugins found')) elif len(self.pluginlist) > 0: self.updateList() self['list'].instance.show() elif self.type == self.DOWNLOAD: self['text'].setText(_('Sorry feeds are down for maintenance'))