[Blends-commit] r2874 - in /blends/trunk/team_analysis_tools: get-archive-pages replace_names.sql
tille at users.alioth.debian.org
tille at users.alioth.debian.org
Sun Jul 3 11:01:51 UTC 2011
Author: tille
Date: Sun Jul 3 11:01:51 2011
New Revision: 2874
URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=2874
Log:
New perl version prevents multi-sql commands. Quick workaround is to assemble all command in a separate SQL script and call this in system call
Added:
blends/trunk/team_analysis_tools/replace_names.sql
Modified:
blends/trunk/team_analysis_tools/get-archive-pages
Modified: blends/trunk/team_analysis_tools/get-archive-pages
URL: http://svn.debian.org/wsvn/blends/blends/trunk/team_analysis_tools/get-archive-pages?rev=2874&op=diff
==============================================================================
--- blends/trunk/team_analysis_tools/get-archive-pages (original)
+++ blends/trunk/team_analysis_tools/get-archive-pages Sun Jul 3 11:01:51 2011
@@ -450,96 +450,8 @@
# It turned out that several people are posting under different names
# This is fixed for active posters to keep the stats clean
-
-$query = "UPDATE listarchive SET author = 'Ralf Gesellensetter' WHERE project = 'edu' AND author LIKE 'Ralf%setter';" ;
-$query = $query . "UPDATE listarchive SET author = 'Vagrant Cascadian' WHERE author LIKE '%vagrant%';" ;
-$query = $query . "UPDATE listarchive SET author = 'Francesco P. Lovergine' WHERE author LIKE 'Francesco%Lovergine' OR author = 'frankie';" ;
-$query = $query . "UPDATE listarchive SET author = 'Christian Perrier' WHERE author = 'bubulle' OR author = 'Christian PERRIER';" ;
-$query = $query . "UPDATE listarchive SET author = 'Steve Langasek' WHERE author = 'vorlon';" ;
-$query = $query . "UPDATE listarchive SET author = 'Adrian von Bidder' WHERE author like 'Adrian % von Bidder';" ;
-$query = $query . "UPDATE listarchive SET author = 'Thomas Bushnell BSG' WHERE author like 'Thomas Bushnell%BSG';" ;
-$query = $query . "UPDATE listarchive SET author = 'Martin-Ãric Racine' WHERE author like 'Martin-%ric% Racine';" ;
-$query = $query . "UPDATE listarchive SET author = 'Eddy Petrisor' WHERE author like 'Eddy Petri%or';" ;
-$query = $query . "UPDATE listarchive SET author = 'Linas Zvirblis' WHERE author like 'Linas %virblis';" ;
-$query = $query . "UPDATE listarchive SET author = 'Nicolas Ãvrard' WHERE author like 'Nicolas %vrard';" ;
-$query = $query . "UPDATE listarchive SET author = 'Piotr Ozarowski' WHERE author like 'Piotr O%arowski';" ;
-$query = $query . "UPDATE listarchive SET author = 'Charles Plessy' WHERE author like 'charles-debian-nospam' OR author = 'plessy';" ;
-$query = $query . "UPDATE listarchive SET author = 'Jean Luc COULON' WHERE author like 'Jean-Luc Coulon%';" ;
-$query = $query . "UPDATE listarchive SET author = 'Jérôme Warnier' WHERE author like 'Jerome Warnier';" ;
-$query = $query . "UPDATE listarchive SET author = 'Sven LUTHER' WHERE project = 'ocaml-maint' AND author = 'Sven';" ;
-$query = $query . "UPDATE listarchive SET author = 'Sven LUTHER' WHERE author = 'Sven Luther';" ;
-$query = $query . "UPDATE listarchive SET author = 'Steffen Möller' WHERE author = 'smoe-guest' OR author = 'moeller' OR author = 'Steffen Moeller';" ;
-$query = $query . "UPDATE listarchive SET author = 'Steven M. Robbins' WHERE author = 'smr' or author like 'Steve%Robbins';" ;
-$query = $query . "UPDATE listarchive SET author = 'Charles Plessy' WHERE author = 'plessy' OR author = 'charles-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'David Paleino' WHERE author = 'hanska-guest';" ;
-$query = $query . "UPDATE listarchive SET author = 'Nelson A. de Oliveira' WHERE author = 'naoliv';" ;
-$query = $query . "UPDATE listarchive SET author = 'Andreas Tille' WHERE author = 'tille' OR author = 'tillea' OR author = 'TilleA';" ;
-$query = $query . "UPDATE listarchive SET author = 'Thijs Kinkhorst' WHERE author = 'thijs';" ;
-$query = $query . "UPDATE listarchive SET author = 'Mathieu Malaterre' WHERE author = 'malat-guest';" ;
-$query = $query . "UPDATE listarchive SET author = 'Morten Kjeldgaard' WHERE author = 'mok0-guest';" ;
-$query = $query . "UPDATE listarchive SET author = 'Tobias Quathamer' WHERE author = 'Tobias Toedter';" ;
-$query = $query . "UPDATE listarchive SET author = 'J.H.M. Dassen' WHERE author = 'J.H.M.Dassen';" ;
-$query = $query . "UPDATE listarchive SET author = 'L. V. Gandhi' WHERE author = 'L . V . Gandhi' OR author = 'L.V.Gandhi';" ;
-$query = $query . "UPDATE listarchive SET author = 'Jelmer Vernooij' WHERE author = 'ctrlsoft-guest' OR author = 'jelmer';" ;
-$query = $query . "UPDATE listarchive SET author = 'Mathieu Parent' WHERE author = 'mparent-guest' OR author = 'Mathieu PARENT' or author = 'sathieu';" ;
-$query = $query . "UPDATE listarchive SET author = 'Noèl Köthe' WHERE author = 'Noel Koethe' OR author = 'noel';" ;
-$query = $query . "UPDATE listarchive SET author = 'Dominique Belhachemi' WHERE author = 'domibel-guest';" ;
-$query = $query . "UPDATE listarchive SET author = 'Philipp Benner' WHERE author = 'pbenner-guest';" ;
-$query = $query . "UPDATE listarchive SET author = 'Sylvestre Ledru' WHERE author = 'sylvestre-guest' OR author = 'sylvestre' OR author = 'sylvestre.ledru' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Christophe Prud_homme' WHERE author = 'prudhomm' OR author = 'prudhomm-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Torsten Werner' WHERE author = 'twerner';" ;
-$query = $query . "UPDATE listarchive SET author = 'Jan Beyer' WHERE author = 'beathovn-guest' OR author = 'jan\@beathovn.de';" ;
-$query = $query . "UPDATE listarchive SET author = 'Filippo Rusconi' WHERE author = 'Filippo Rusconi (Debian Maintainer)' OR author = 'rusconi';" ;
-$query = $query . "UPDATE listarchive SET author = 'Daniel Leidert' WHERE author = 'Daniel Leidert (dale)' OR author = 'dleidert-guest';" ;
-$query = $query . "UPDATE listarchive SET author = 'Michael Banck' WHERE author = 'mbanck';" ;
-$query = $query . "UPDATE listarchive SET author = 'Guido Günther' WHERE author = 'Guido Günther' OR author = 'Guido Guenther';" ;
-$query = $query . "UPDATE listarchive SET author = 'Ahmed El-Mahmoudy' WHERE author like '%Ahmed El-Mahmoudy%' OR author = 'aelmahmoudy-guest';" ;
-$query = $query . "UPDATE listarchive SET author = 'Branden Robinson' WHERE author like 'Branden Robinson%' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'LI Daobing' WHERE author = 'lidaobing-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Nicholas Breen' WHERE author = 'nbreen-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Egon Willighagen' WHERE author = 'egonw-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Jordan Mantha' WHERE author = 'laserjock-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Eric Sharkey' WHERE author = 'sharkey' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Fabio Tranchitella' WHERE author = 'kobold' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Petter Reinholdtsen' WHERE author = 'pere' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Andreas Putzo' WHERE author = 'nd-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Giovanni Mascellani' WHERE author = 'gmascellani-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Paul Wise' WHERE author = 'pabs' OR author = 'pabs-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Alan Boudreault' WHERE author = 'aboudreault-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Reinhard Tartler' WHERE author = 'siretart' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Alessio Treglia' WHERE author = 'quadrispro-guest' OR author = 'alessio';" ;
-$query = $query . "UPDATE listarchive SET author = 'M. Christophe Mutricy' WHERE author = 'xtophe-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Jonas Smedegaard' WHERE author = 'js' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'JaromÃr MikeÅ¡' WHERE author = 'mira-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Adrian Knoth' WHERE author = 'adiknoth-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Andres Mejia' WHERE author = 'ceros-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Fabian Greffrath' WHERE author = 'fabian-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Loïc Minier' WHERE author = 'lool-guest' OR author = 'lool' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Benjamin Drung' WHERE author = 'bdrung-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Yaroslav Halchenko' WHERE author = 'yoh-guest' OR author = 'yoh' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Samuel Thibault' WHERE author = 'sthibaul-guest' OR author = 'sthibault';" ;
-$query = $query . "UPDATE listarchive SET author = 'Andrew Lee' WHERE author = 'ajqlee' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'David Bremner' WHERE author = 'bremner-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Christian Kastner' WHERE author = 'chrisk' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Christopher Walker' WHERE author = 'cjw1006-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Michael Hanke' WHERE author = 'mhanke-guest' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Alastair McKinstry' WHERE author = 'mckinstry' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Otavio Salvador' WHERE author = 'otavio' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Frederic Lehobey' WHERE author = 'fdl-guest' or author = 'Frederic Daniel Luc Lehobey' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Sylvain Le Gall' WHERE author = 'Sylvain LE GALL' ;" ;
-$query = $query . "UPDATE listarchive SET author = 'Hans-Christoph Steiner' WHERE author = 'eighthave-guest' ;" ;
-
-# stupid spammers at project = 'pkg-grass-devel'
-$query = $query . "DELETE FROM listarchive WHERE author = 'info' AND project = 'pkg-grass-devel' ;" ;
-
-# delete known spammers
-$query = $query . "DELETE FROM listarchive WHERE project = 'pkg-java-maintainers' AND author = 'info' ;" ;
-
-# Debian custom list was renamed to blends
-$query = $query . "UPDATE listarchive SET project = 'blends' WHERE project = 'custom' ;";
-
-$daten = $dbh->prepare_cached($query);
-$daten->execute() ;
+system("psql listarchives replace_names.sql");
+
$daten->finish() ;
Added: blends/trunk/team_analysis_tools/replace_names.sql
URL: http://svn.debian.org/wsvn/blends/blends/trunk/team_analysis_tools/replace_names.sql?rev=2874&op=file
==============================================================================
--- blends/trunk/team_analysis_tools/replace_names.sql (added)
+++ blends/trunk/team_analysis_tools/replace_names.sql Sun Jul 3 11:01:51 2011
@@ -1,0 +1,91 @@
+-- It turned out that several people are posting under different names
+-- This is fixed for active posters to keep the stats clean
+
+UPDATE listarchive SET author = 'Ralf Gesellensetter' WHERE project = 'edu' AND author LIKE 'Ralf%setter';
+UPDATE listarchive SET author = 'Vagrant Cascadian' WHERE author LIKE '%vagrant%';
+UPDATE listarchive SET author = 'Francesco P. Lovergine' WHERE author LIKE 'Francesco%Lovergine' OR author = 'frankie';
+UPDATE listarchive SET author = 'Christian Perrier' WHERE author = 'bubulle' OR author = 'Christian PERRIER';
+UPDATE listarchive SET author = 'Steve Langasek' WHERE author = 'vorlon';
+UPDATE listarchive SET author = 'Adrian von Bidder' WHERE author like 'Adrian % von Bidder';
+UPDATE listarchive SET author = 'Thomas Bushnell BSG' WHERE author like 'Thomas Bushnell%BSG';
+UPDATE listarchive SET author = 'Martin-Ãric Racine' WHERE author like 'Martin-%ric% Racine';
+UPDATE listarchive SET author = 'Eddy Petrisor' WHERE author like 'Eddy Petri%or';
+UPDATE listarchive SET author = 'Linas Zvirblis' WHERE author like 'Linas %virblis';
+UPDATE listarchive SET author = 'Nicolas Ãvrard' WHERE author like 'Nicolas %vrard';
+UPDATE listarchive SET author = 'Piotr Ozarowski' WHERE author like 'Piotr O%arowski';
+UPDATE listarchive SET author = 'Charles Plessy' WHERE author like 'charles-debian-nospam' OR author = 'plessy';
+UPDATE listarchive SET author = 'Jean Luc COULON' WHERE author like 'Jean-Luc Coulon%';
+UPDATE listarchive SET author = 'Jérôme Warnier' WHERE author like 'Jerome Warnier';
+UPDATE listarchive SET author = 'Sven LUTHER' WHERE project = 'ocaml-maint' AND author = 'Sven';
+UPDATE listarchive SET author = 'Sven LUTHER' WHERE author = 'Sven Luther';
+UPDATE listarchive SET author = 'Steffen Möller' WHERE author = 'smoe-guest' OR author = 'moeller' OR author = 'Steffen Moeller';
+UPDATE listarchive SET author = 'Steven M. Robbins' WHERE author = 'smr' or author like 'Steve%Robbins';
+UPDATE listarchive SET author = 'Charles Plessy' WHERE author = 'plessy' OR author = 'charles-guest' ;
+UPDATE listarchive SET author = 'David Paleino' WHERE author = 'hanska-guest';
+UPDATE listarchive SET author = 'Nelson A. de Oliveira' WHERE author = 'naoliv';
+UPDATE listarchive SET author = 'Andreas Tille' WHERE author = 'tille' OR author = 'tillea' OR author = 'TilleA';
+UPDATE listarchive SET author = 'Thijs Kinkhorst' WHERE author = 'thijs';
+UPDATE listarchive SET author = 'Mathieu Malaterre' WHERE author = 'malat-guest';
+UPDATE listarchive SET author = 'Morten Kjeldgaard' WHERE author = 'mok0-guest';
+UPDATE listarchive SET author = 'Tobias Quathamer' WHERE author = 'Tobias Toedter';
+UPDATE listarchive SET author = 'J.H.M. Dassen' WHERE author = 'J.H.M.Dassen';
+UPDATE listarchive SET author = 'L. V. Gandhi' WHERE author = 'L . V . Gandhi' OR author = 'L.V.Gandhi';
+UPDATE listarchive SET author = 'Jelmer Vernooij' WHERE author = 'ctrlsoft-guest' OR author = 'jelmer';
+UPDATE listarchive SET author = 'Mathieu Parent' WHERE author = 'mparent-guest' OR author = 'Mathieu PARENT' or author = 'sathieu';
+UPDATE listarchive SET author = 'Noèl Köthe' WHERE author = 'Noel Koethe' OR author = 'noel';
+UPDATE listarchive SET author = 'Dominique Belhachemi' WHERE author = 'domibel-guest';
+UPDATE listarchive SET author = 'Philipp Benner' WHERE author = 'pbenner-guest';
+UPDATE listarchive SET author = 'Sylvestre Ledru' WHERE author = 'sylvestre-guest' OR author = 'sylvestre' OR author = 'sylvestre.ledru' ;
+UPDATE listarchive SET author = 'Christophe Prud_homme' WHERE author = 'prudhomm' OR author = 'prudhomm-guest' ;
+UPDATE listarchive SET author = 'Torsten Werner' WHERE author = 'twerner';
+UPDATE listarchive SET author = 'Jan Beyer' WHERE author = 'beathovn-guest' OR author = 'jan at beathovn.de';
+UPDATE listarchive SET author = 'Filippo Rusconi' WHERE author = 'Filippo Rusconi (Debian Maintainer)' OR author = 'rusconi';
+UPDATE listarchive SET author = 'Daniel Leidert' WHERE author = 'Daniel Leidert (dale)' OR author = 'dleidert-guest';
+UPDATE listarchive SET author = 'Michael Banck' WHERE author = 'mbanck';
+UPDATE listarchive SET author = 'Guido Günther' WHERE author = 'Guido Günther' OR author = 'Guido Guenther';
+UPDATE listarchive SET author = 'Ahmed El-Mahmoudy' WHERE author like '%Ahmed El-Mahmoudy%' OR author = 'aelmahmoudy-guest';
+UPDATE listarchive SET author = 'Branden Robinson' WHERE author like 'Branden Robinson%' ;
+UPDATE listarchive SET author = 'LI Daobing' WHERE author = 'lidaobing-guest' ;
+UPDATE listarchive SET author = 'Nicholas Breen' WHERE author = 'nbreen-guest' ;
+UPDATE listarchive SET author = 'Egon Willighagen' WHERE author = 'egonw-guest' ;
+UPDATE listarchive SET author = 'Jordan Mantha' WHERE author = 'laserjock-guest' ;
+UPDATE listarchive SET author = 'Eric Sharkey' WHERE author = 'sharkey' ;
+UPDATE listarchive SET author = 'Fabio Tranchitella' WHERE author = 'kobold' ;
+UPDATE listarchive SET author = 'Petter Reinholdtsen' WHERE author = 'pere' ;
+UPDATE listarchive SET author = 'Andreas Putzo' WHERE author = 'nd-guest' ;
+UPDATE listarchive SET author = 'Giovanni Mascellani' WHERE author = 'gmascellani-guest' ;
+UPDATE listarchive SET author = 'Paul Wise' WHERE author = 'pabs' OR author = 'pabs-guest' ;
+UPDATE listarchive SET author = 'Alan Boudreault' WHERE author = 'aboudreault-guest' ;
+UPDATE listarchive SET author = 'Reinhard Tartler' WHERE author = 'siretart' ;
+UPDATE listarchive SET author = 'Alessio Treglia' WHERE author = 'quadrispro-guest' OR author = 'alessio';
+UPDATE listarchive SET author = 'M. Christophe Mutricy' WHERE author = 'xtophe-guest' ;
+UPDATE listarchive SET author = 'Jonas Smedegaard' WHERE author = 'js' ;
+UPDATE listarchive SET author = 'JaromÃr MikeÅ¡' WHERE author = 'mira-guest' ;
+UPDATE listarchive SET author = 'Adrian Knoth' WHERE author = 'adiknoth-guest' ;
+UPDATE listarchive SET author = 'Andres Mejia' WHERE author = 'ceros-guest' ;
+UPDATE listarchive SET author = 'Fabian Greffrath' WHERE author = 'fabian-guest' ;
+UPDATE listarchive SET author = 'Loïc Minier' WHERE author = 'lool-guest' OR author = 'lool' ;
+UPDATE listarchive SET author = 'Benjamin Drung' WHERE author = 'bdrung-guest' ;
+UPDATE listarchive SET author = 'Yaroslav Halchenko' WHERE author = 'yoh-guest' OR author = 'yoh' ;
+UPDATE listarchive SET author = 'Samuel Thibault' WHERE author = 'sthibaul-guest' OR author = 'sthibault';
+UPDATE listarchive SET author = 'Andrew Lee' WHERE author = 'ajqlee' ;
+UPDATE listarchive SET author = 'David Bremner' WHERE author = 'bremner-guest' ;
+UPDATE listarchive SET author = 'Christian Kastner' WHERE author = 'chrisk' ;
+UPDATE listarchive SET author = 'Christopher Walker' WHERE author = 'cjw1006-guest' ;
+UPDATE listarchive SET author = 'Michael Hanke' WHERE author = 'mhanke-guest' ;
+UPDATE listarchive SET author = 'Alastair McKinstry' WHERE author = 'mckinstry' ;
+UPDATE listarchive SET author = 'Otavio Salvador' WHERE author = 'otavio' ;
+UPDATE listarchive SET author = 'Frederic Lehobey' WHERE author = 'fdl-guest' or author = 'Frederic Daniel Luc Lehobey' ;
+UPDATE listarchive SET author = 'Sylvain Le Gall' WHERE author = 'Sylvain LE GALL' ;
+UPDATE listarchive SET author = 'Hans-Christoph Steiner' WHERE author = 'eighthave-guest' ;
+UPDATE listarchive SET author = 'Karol Langner' WHERE author = 'klm-guest' ;
+UPDATE listarchive SET author = 'Georges Khaznadar' WHERE author = 'georgesk' ;
+
+-- stupid spammers at project = 'pkg-grass-devel'.
+DELETE FROM listarchive WHERE author = 'info' AND project = 'pkg-grass-devel' ;
+
+-- delete known spammers
+DELETE FROM listarchive WHERE project = 'pkg-java-maintainers' AND author = 'info' ;
+
+-- Debian custom list was renamed to blends
+UPDATE listarchive SET project = 'blends' WHERE project = 'custom' ;
More information about the Blends-commit
mailing list