self.available_versions = {
'stable': _('Tor Browser Bundle - stable'),
'alpha': _('Tor Browser Bundle - alpha')
- # commenting out obs bundle until I have a reliable way to find latest version. related bugs:
- # https://trac.torproject.org/projects/tor/ticket/8644
- # https://trac.torproject.org/projects/tor/ticket/8645
- #'obs': _('Obsfproxy Tor Browser Bundle')
}
# allow buttons to have icons
'vidalia_bin': tbb_data+'/tbb/alpha/'+self.architecture+'/tor-browser_'+self.language+'/App/vidalia',
'firefox_bin': tbb_data+'/tbb/alpha/'+self.architecture+'/tor-browser_'+self.language+'/App/Firefox/firefox',
'firefox_profile': tbb_data+'/tbb/alpha/'+self.architecture+'/tor-browser_'+self.language+'/Data/profile',
- },
- 'obs': {
- 'dir': tbb_data+'/tbb/obs/'+self.architecture,
- 'start': tbb_data+'/tbb/obs/'+self.architecture+'/tor-browser_'+self.language+'/start-tor-browser',
- 'vidalia_bin': tbb_data+'/tbb/obs/'+self.architecture+'/tor-browser_'+self.language+'/App/vidalia',
- 'firefox_bin': tbb_data+'/tbb/obs/'+self.architecture+'/tor-browser_'+self.language+'/App/Firefox/firefox',
- 'firefox_profile': tbb_data+'/tbb/obs/'+self.architecture+'/tor-browser_'+self.language+'/Data/profile',
}
}
}
'preferred': 'stable',
'installed_version': {
'stable': False,
- 'alpha': False,
- 'obs': False
+ 'alpha': False
},
'latest_version': {
'stable': '0',
- 'alpha': '0',
- 'obs': '0',
+ 'alpha': '0'
},
'update_over_tor': True,
'check_for_updates': False,
good_settings = False
if not 'alpha' in settings['installed_version']:
good_settings = False
- if not 'obs' in settings['installed_version']:
- good_settings = False
if not 'latest_version' in settings:
good_settings = False
if not 'stable' in settings['latest_version']:
good_settings = False
if not 'alpha' in settings['latest_version']:
good_settings = False
- if not 'obs' in settings['latest_version']:
- good_settings = False
if not 'update_over_tor' in settings:
good_settings = False
if not 'check_for_updates' in settings:
versions = json.load(open(self.common.paths['update_check_file']))
latest_stable = None
latest_alpha = None
- latest_obs = None
# filter linux versions
valid_versions = []
if len(valid_versions):
latest_stable = valid_versions[0]
- if latest_stable or latest_alpha or latest_obs:
+ if latest_stable or latest_alpha:
if latest_stable:
self.common.settings['latest_version']['stable'] = latest_stable[:-len('-Linux')]
if latest_alpha:
self.common.settings['latest_version']['alpha'] = latest_alpha[:-len('-Linux')]
- if latest_obs:
- self.common.settings['latest_version']['obs'] = latest_obs[:-len('-Linux')]
self.common.settings['last_update_check_timestamp'] = int(time.time())
self.common.settings['check_for_updates'] = False
self.common.save_settings()