[tor-commits] [gettor/master] Add a hack so we are still able to answer to users requesting
kaner at torproject.org
kaner at torproject.org
Sun Sep 4 12:42:13 UTC 2011
commit 64bb565ad1a7785fdd4a65f92ba26f73425c4e63
Author: Christian Fromme <kaner at strace.org>
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)
More information about the tor-commits
mailing list