]> git.lizzy.rs Git - torbrowser-launcher.git/commitdiff
saves installed_version setting after extracting
authorMicah Lee <micahflee@riseup.net>
Wed, 27 Feb 2013 17:41:56 +0000 (09:41 -0800)
committerMicah Lee <micahflee@riseup.net>
Wed, 27 Feb 2013 17:41:56 +0000 (09:41 -0800)
torbrowser-launcher

index 5a3baf78d4ecb19b5466ad377dac34f613a00e31..675b8e62395d4ab0fcd99d7a8d9b398d8bb89d74 100755 (executable)
@@ -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):