" % (trclass)
- tdclass = "sid"
- for dist in distribution:
- if dist == "experimental":
- tdclass = "exp"
- print "%s | " % (tdclass, source)
- print "" % (tdclass)
+ print " | %s | " % (source)
+ print ""
for vers in version.split():
- print "%s " % (source, vers, vers)
- print " | %s | " % (tdclass, arch, tdclass)
+ print "%s " % (source, utils.html_escape(vers), utils.html_escape(vers))
+ print " | "
+ print "%s | " % (arch)
+ print ""
for dist in distribution:
- print "%s " % (dist)
- print " | %s | " % (tdclass, last_mod)
+ print "%s
" % (dist)
+ print ""
+ print "%s | " % (last_mod)
(name, mail) = maint.split(":")
- print "%s | " % (tdclass, mail, name)
- print "" % (tdclass)
+ print " | "
+ print "Maintainer: %s " % (utils.html_escape(mail), utils.html_escape(name))
+ (name, mail) = changedby.split(":")
+ print "Changed-By: %s " % (utils.html_escape(mail), utils.html_escape(name))
+
+ try:
+ (login, domain) = sponsor.split("@")
+ print "@debian.org " % (utils.html_escape(login), utils.html_escape(login))
+ except:
+ pass
+
+ print "Fingerprint: %s" % (fingerprint)
+ print " | "
+
+ print ""
for close in closes:
- print "#%s " % (close, close)
+ print "#%s " % (utils.html_escape(close), utils.html_escape(close))
print " |
"
row_number+=1
@@ -305,11 +340,15 @@ def process_changes_files(changes_files, type):
max_source_len = 0
max_version_len = 0
max_arch_len = 0
- maintainer = {}
- maint=""
- distribution=""
- closes=""
for i in per_source_items:
+ maintainer = {}
+ maint=""
+ distribution=""
+ closes=""
+ fingerprint=""
+ changeby = {}
+ changedby=""
+ sponsor=""
last_modified = time.time()-i[1]["oldest"]
source = i[1]["list"][0]["source"]
if len(source) > max_source_len:
@@ -322,13 +361,27 @@ def process_changes_files(changes_files, type):
(maintainer["maintainer822"], maintainer["maintainer2047"],
maintainer["maintainername"], maintainer["maintaineremail"]) = \
utils.fix_maintainer (j["maintainer"])
- except utils.ParseMaintError, msg:
+ except ParseMaintError, msg:
print "Problems while parsing maintainer address\n"
maintainer["maintainername"] = "Unknown"
maintainer["maintaineremail"] = "Unknown"
maint="%s:%s" % (maintainer["maintainername"], maintainer["maintaineremail"])
+ # ...likewise for the Changed-By: field if it exists.
+ try:
+ (changeby["changedby822"], changeby["changedby2047"],
+ changeby["changedbyname"], changeby["changedbyemail"]) = \
+ utils.fix_maintainer (j["changed-by"])
+ except ParseMaintError, msg:
+ (changeby["changedby822"], changeby["changedby2047"],
+ changeby["changedbyname"], changeby["changedbyemail"]) = \
+ ("", "", "", "")
+ changedby="%s:%s" % (changeby["changedbyname"], changeby["changedbyemail"])
+
distribution=j["distribution"].keys()
closes=j["closes"].keys()
+ fingerprint=j["fingerprint"]
+ if j.has_key("sponsoremail"):
+ sponsor=j["sponsoremail"]
for arch in j["architecture"].keys():
arches[arch] = ""
version = j["version"]
@@ -345,7 +398,7 @@ def process_changes_files(changes_files, type):
note = " | [N]"
else:
note = ""
- entries.append([source, version_list, arch_list, note, last_modified, maint, distribution, closes])
+ entries.append([source, version_list, arch_list, note, last_modified, maint, distribution, closes, fingerprint, sponsor, changedby])
# direction entry consists of "Which field, which direction, time-consider" where
# time-consider says how we should treat last_modified. Thats all.
@@ -390,20 +443,20 @@ def process_changes_files(changes_files, type):
# Output for a html file. First table header. then table_footer.
# Any line between them is then a