コード例 #1
0
ファイル: PluginBrowser.py プロジェクト: nx111/enigma2
	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"))
コード例 #2
0
ファイル: PluginBrowser.py プロジェクト: nx111/enigma2
 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"))
コード例 #3
0
ファイル: PluginBrowser.py プロジェクト: Venom83/openNFR-gui
	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"))
コード例 #4
0
    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'))
コード例 #5
0
ファイル: AddonsPanel.py プロジェクト: jasmin811/enigma2
	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"))
コード例 #6
0
    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'))
コード例 #7
0
	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."))
コード例 #8
0
ファイル: PluginBrowser.py プロジェクト: VytenisP/enigma2-3
	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"))
コード例 #9
0
 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."
                       ))
コード例 #10
0
ファイル: PluginBrowser.py プロジェクト: kingvuplus/boom2
    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'))
コード例 #11
0
ファイル: PluginBrowser.py プロジェクト: kingvuplus/boom
    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'))