saves installed_version setting after extracting

This commit is contained in:
Micah Lee 2013-02-27 09:41:56 -08:00
parent 15ee8049c2
commit b329defaee

View File

@ -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):