[tor-commits] [gettor/master] Insert a dirty hack into MakeStat.py as long as we must keep
kaner at torproject.org
kaner at torproject.org
Sun Sep 18 19:53:03 UTC 2011
commit 56176f0babfb3623279b3dc0732e78e23a3e6e41
Author: Christian Fromme <kaner at strace.org>
Date: Mon Sep 12 20:07:17 2011 +0200
Insert a dirty hack into MakeStat.py as long as we must keep
log files with old packages names around..
---
MakeStat.py | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/MakeStat.py b/MakeStat.py
index f124370..24ceeaf 100644
--- a/MakeStat.py
+++ b/MakeStat.py
@@ -12,6 +12,7 @@ def makestats(filename, configPackages):
# Initialize package counter
packageCounter = { 'None': 0}
+ dateInfo = ""
for k in configPackages.keys():
packageCounter[k] = 0
@@ -30,6 +31,21 @@ def makestats(filename, configPackages):
reqInfo = ast.literal_eval(match.group(2))
package = reqInfo['package']
if package is not None:
+ match = re.match("tor-browser-bundle(_.*)", package)
+ if match:
+ package = "windows" + match.group(1)
+ match = re.match("linux-browser-bundle(-.*)", package)
+ if match:
+ package = "linux" + match.group(1)
+ match = re.match("(macosx-i386)(.*)", package)
+ if match:
+ package = "macosx-i386"
+ match = re.match("(macosx-ppc)(.*)", package)
+ if match:
+ package = "macosx-ppc"
+ match = re.match("windows-bundle", package)
+ if match:
+ continue
packageCounter[package] += 1
else:
packageCounter['None'] += 1
More information about the tor-commits
mailing list