[med-svn] r1549 - trunk/community/infrastructure/scripts

tille at alioth.debian.org tille at alioth.debian.org
Mon Mar 10 13:46:21 UTC 2008


Author: tille
Date: 2008-03-10 13:46:21 +0000 (Mon, 10 Mar 2008)
New Revision: 1549

Modified:
   trunk/community/infrastructure/scripts/cddtasktools.py
Log:
Fix Responsible address handling


Modified: trunk/community/infrastructure/scripts/cddtasktools.py
===================================================================
--- trunk/community/infrastructure/scripts/cddtasktools.py	2008-03-10 13:30:44 UTC (rev 1548)
+++ trunk/community/infrastructure/scripts/cddtasktools.py	2008-03-10 13:46:21 UTC (rev 1549)
@@ -307,8 +307,10 @@
                     why = stanza['why']
                     continue
                 if key == 'Responsible':
-                    responsible = re.sub('\s*(.+)\s+<(.+ at .+)>\s*', '<a href="mailto:\\2">\\1</a>', \
-                		    stanza['responsible'])
+                    responsible = stanza['responsible'].strip()
+                    if responsible != '':
+                        responsible = re.sub('\s*(.+)\s+<(.+ at .+)>\s*', '<a href="mailto:\\2">\\1</a>', responsible)
+                        dep.responsible = responsible
                     continue
 
                 if key in dependency_keys:




More information about the debian-med-commit mailing list