[Blends-commit] r2999 - in /blends/trunk/team_analysis_tools: get-archive-pages maintain_names_prefered.py

tille at users.alioth.debian.org tille at users.alioth.debian.org
Thu Oct 27 08:21:29 UTC 2011


Author: tille
Date: Thu Oct 27 08:21:28 2011
New Revision: 2999

URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=2999
Log:
Adapt quotet strings to PG 9.1; new prefered names

Modified:
    blends/trunk/team_analysis_tools/get-archive-pages
    blends/trunk/team_analysis_tools/maintain_names_prefered.py

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=2999&op=diff
==============================================================================
--- blends/trunk/team_analysis_tools/get-archive-pages (original)
+++ blends/trunk/team_analysis_tools/get-archive-pages Thu Oct 27 08:21:28 2011
@@ -34,7 +34,6 @@
 		'jr',
                 'kde',
                 'kernel',
-                'qa',
                 'l10n-german',
                 'laptop',
                 'legal',

Modified: blends/trunk/team_analysis_tools/maintain_names_prefered.py
URL: http://svn.debian.org/wsvn/blends/blends/trunk/team_analysis_tools/maintain_names_prefered.py?rev=2999&op=diff
==============================================================================
--- blends/trunk/team_analysis_tools/maintain_names_prefered.py (original)
+++ blends/trunk/team_analysis_tools/maintain_names_prefered.py Thu Oct 27 08:21:28 2011
@@ -100,6 +100,9 @@
              'Tony Palma',
              'Debian running development group',
              'Debian Printing Group',
+             'intrigeri',
+             'Andrew O. Shadoura',
+             'Tcl/Tk Debian Packagers',
             )
 
 has_quotes_re = re.compile('".*"')
@@ -109,7 +112,7 @@
     return raw_input(prompt).strip()
 
 def quote(s):
-    return "'" + s.replace("\\", "\\\\").replace("'", "\\'").replace('"', '\\"') + "'"
+    return "'" + s.replace("\\", "\\\\").replace("'", "''").replace('"', '""') + "'"
 
 def List2PgArray(list):
     # turn a list of strings into the syntax for a PostgreSQL array:
@@ -119,7 +122,7 @@
     komma='{'
     PgArray=''
     for s in list:
-        PgArray=PgArray+komma+'"'+ s.replace("'", "''").replace('"', '\\\\"') +'"'
+        PgArray=PgArray+komma+'"'+ s.replace("'", "''").replace('"', '\\"') +'"'
         komma=','
     return PgArray+'}'
 




More information about the Blends-commit mailing list