[Collab-qa-commits] r1701 - udd/udd
Andreas Tille
tille at alioth.debian.org
Thu Feb 25 20:23:43 UTC 2010
Author: tille
Date: 2010-02-25 20:23:41 +0000 (Thu, 25 Feb 2010)
New Revision: 1701
Modified:
udd/udd/ftpnew_gatherer.py
Log:
Try to work without unneeded warnings to get rid of daily mails
Modified: udd/udd/ftpnew_gatherer.py
===================================================================
--- udd/udd/ftpnew_gatherer.py 2010-02-25 14:36:11 UTC (rev 1700)
+++ udd/udd/ftpnew_gatherer.py 2010-02-25 20:23:41 UTC (rev 1701)
@@ -191,7 +191,9 @@
ftpnew822file = my_config['path']+'/new.822'
ftpnew_data = open(ftpnew822file)
- has_warned_about_missing_section_key = 0
+ # seems there will be no change to set the section field ... getting bored about daily mail about this
+ # has_warned_about_missing_section_key = 0
+ has_warned_about_missing_section_key = 1
try:
for stanza in deb822.Sources.iter_paragraphs(ftpnew_data, shared_storage=False):
try:
@@ -414,7 +416,9 @@
srcpkg.s['Vcs-Url'] = value
print >>srco, "%s: %s" % (field, value)
else:
- print >>stderr, "Unknown field in %s: %s" % (srcpkg.s['Source'], field)
+ # Don't warn about Original-Maintainer field
+ if not field.startswith('Original-Maintainer'):
+ print >>stderr, "Unknown field in %s: %s" % (srcpkg.s['Source'], field)
print >>srco, "*%s: %s" % (field, value)
continue
if in_description:
More information about the Collab-qa-commits
mailing list