[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [gettor/master] Add a hack so we are still able to answer to users requesting



commit 64bb565ad1a7785fdd4a65f92ba26f73425c4e63
Author: Christian Fromme <kaner@xxxxxxxxxx>
Date:   Sun Sep 4 14:40:17 2011 +0200

    Add a hack so we are still able to answer to users requesting
    "tor-browser-bundle"
---
 lib/gettor/requests.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/gettor/requests.py b/lib/gettor/requests.py
index 2ee275e..1a9cdac 100644
--- a/lib/gettor/requests.py
+++ b/lib/gettor/requests.py
@@ -96,6 +96,10 @@ class requestMail:
     def matchPackage(self, line):
         """Look up which package the user is requesting.
         """
+        # XXX HACK ALERT: This makes it possible for users to still request
+        #                 the windows bundle by its old name
+        packages_hacked = self.config.PACKAGES
+        packages_hacked['tor-browser-bundle'] = ()
         for p in self.config.PACKAGES.keys():
             matchme = ".*" + p + ".*"
             match = re.match(matchme, line, re.DOTALL)    

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits