]> git.lizzy.rs Git - torbrowser-launcher.git/commitdiff
Added elif statement to say that a mirror file has been loaded
authoru451f <u@451f.org>
Tue, 22 Jul 2014 22:58:53 +0000 (00:58 +0200)
committeru451f <u@451f.org>
Tue, 22 Jul 2014 22:58:53 +0000 (00:58 +0200)
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

index 0e92880d772822db5e557763fc39f62ac283a1ce..9c2570536f4ef3cd1f3b6b1515af0b0e89663669 100755 (executable)
@@ -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)