[Pkg-privacy-commits] [torbrowser-launcher] 76/476: saves installed_version setting after extracting

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository torbrowser-launcher.

commit b329defaee4159d6ef15f8b8fbc604917ac9bbf1
Author: Micah Lee <micahflee at riseup.net>
Date:   Wed Feb 27 09:41:56 2013 -0800

    saves installed_version setting after extracting
---
 torbrowser-launcher | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/torbrowser-launcher b/torbrowser-launcher
index 5a3baf7..675b8e6 100755
--- a/torbrowser-launcher
+++ b/torbrowser-launcher
@@ -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):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git



More information about the Pkg-privacy-commits mailing list