def retrieve_versioninfo(self): ''' Retrieve version information ''' # # The windows updater is still experimental, so it # is disabled by default and one needs to enable it # explicitly using the Web UI. # if not CONFIG['win32_updater']: self._schedule() return ctx = { 'uri': updater_utils.versioninfo_get_uri(self.channel) } RUNNER_CORE.run('dload', self._process_versioninfo, False, ctx)
def retrieve_versioninfo(self): ''' Retrieve version information ''' # # The windows updater is still experimental, so it # is disabled by default and one needs to enable it # explicitly using the Web UI. # if not CONFIG['win32_updater']: self._schedule() return channel = CONFIG['win32_updater_channel'] ctx = { 'uri': updater_utils.versioninfo_get_uri(self.system, channel) } deferred = Deferred() deferred.add_callback(self._process_versioninfo) deferred.add_errback(self._handle_failure) RUNNER_CORE.run('dload', deferred, False, ctx)