[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [gettor/master] Insert a dirty hack into MakeStat.py as long as we must keep
commit 56176f0babfb3623279b3dc0732e78e23a3e6e41
Author: Christian Fromme <kaner@xxxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits