mirror of
https://github.com/torproject/torbrowser-launcher.git
synced 2024-11-23 17:39:52 +00:00
saves installed_version setting after extracting
This commit is contained in:
parent
15ee8049c2
commit
b329defaee
@ -281,7 +281,7 @@ class TorBrowserLauncher:
|
||||
self.download('update check', self.paths['url']['update_check'], self.paths['file']['update_check'])
|
||||
|
||||
if task == 'attempt_update':
|
||||
print 'Attempting to update'
|
||||
print 'Checking to see if update it needed'
|
||||
self.attempt_update()
|
||||
|
||||
elif task == 'download_tarball':
|
||||
@ -413,6 +413,10 @@ class TorBrowserLauncher:
|
||||
p = subprocess.Popen(['tar', '-xf', self.paths['file']['tarball'], '-C', self.paths['dir']['tbb']], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
self.pulse_until_process_exits(p)
|
||||
|
||||
# installation is finished, so save installed_version
|
||||
self.settings['installed_version'] = self.settings['latest_version']
|
||||
self.save_settings()
|
||||
|
||||
self.run_task()
|
||||
|
||||
def run(self, run_next_task = True):
|
||||
|
Loading…
Reference in New Issue
Block a user