[Pkg-privacy-commits] [torbrowser-launcher] 254/476: Added elif statement to say that a mirror file has been loaded successfully instead of just issuing a warning if it did not work.
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:42 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 cde3b2023b17485bc40abfa6d4453eb7ff44df25
Author: u451f <u at 451f.org>
Date: Wed Jul 23 00:58:53 2014 +0200
Added elif statement to say that a mirror file has been loaded
successfully instead of just issuing a warning if it did not work.
related to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755682
---
torbrowser-launcher | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/torbrowser-launcher b/torbrowser-launcher
index 0e92880..9c25705 100755
--- a/torbrowser-launcher
+++ b/torbrowser-launcher
@@ -216,7 +216,9 @@ class TBLCommon:
def load_mirrors(self):
self.mirrors = []
for srcfile in self.paths['mirrors_txt']:
- if not os.path.exists(srcfile):
+ if os.path.exists(srcfile):
+ print "Successfully loaded mirrors from %s" % srcfile
+ elif not os.path.exists(srcfile):
print "Warning: can't load mirrors from %s" % srcfile
continue
for mirror in open(srcfile, 'r').readlines():
@@ -896,7 +898,7 @@ class TBLLauncher:
if self.common.settings['update_over_tor']:
print _('Updating over Tor')
- from twisted.internet.endpoints import TCP4ClientEndpoint
+ from twisted.internet.endpoints import TCP4ClientEndpoint
from txsocksx.http import SOCKS5Agent
torEndpoint = TCP4ClientEndpoint(reactor, '127.0.0.1', 9050)
--
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