[Collab-qa-commits] r1543 - upload-history

Filippo Giunchedi filippo at alioth.debian.org
Sun Jul 26 21:57:39 UTC 2009


Author: filippo
Date: 2009-07-26 21:57:38 +0000 (Sun, 26 Jul 2009)
New Revision: 1543

Modified:
   upload-history/munge_ddc.py
Log:
include message-id and message-date, don't try hard to parse changes date

Modified: upload-history/munge_ddc.py
===================================================================
--- upload-history/munge_ddc.py	2009-07-25 10:54:00 UTC (rev 1542)
+++ upload-history/munge_ddc.py	2009-07-26 21:57:38 UTC (rev 1543)
@@ -169,12 +169,7 @@
         # try first with changes date, then message date
         d = normalize_date(c['Date'])
         if not d:
-            d = normalize_date(msg['Date'])
-        # unparsable date, make it N/A
-        if not d:
             c['Date'] = "N/A"
-        else:
-            c['Date'] = d
 
         if c.has_key('Closes'):
             m = bugnumber_list_RE.match(c['Closes'])
@@ -190,6 +185,10 @@
             # separate different fields
             outfile.write("\n")
 
+        # fields from d-d-c message, not .changes
+        outfile.write("%s: %s\n" % ('Message-Id', str(msg['Message-Id']).strip('\n')))
+        outfile.write("%s: %s\n" % ('Message-Date', str(msg['Date']).strip('\n')))
+
         # separate different packages
         outfile.write("\n")
 




More information about the Collab-qa-commits mailing list