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

tille at alioth.debian.org tille at alioth.debian.org
Mon Feb 18 19:57:27 UTC 2008


Author: tille
Date: 2008-02-18 19:57:26 +0000 (Mon, 18 Feb 2008)
New Revision: 1443

Modified:
   trunk/community/infrastructure/scripts/cddtasktools.py
   trunk/community/infrastructure/scripts/update-tasks
Log:
Provide info about maintainer in "responsible" field


Modified: trunk/community/infrastructure/scripts/cddtasktools.py
===================================================================
--- trunk/community/infrastructure/scripts/cddtasktools.py	2008-02-18 19:55:43 UTC (rev 1442)
+++ trunk/community/infrastructure/scripts/cddtasktools.py	2008-02-18 19:57:26 UTC (rev 1443)
@@ -320,6 +320,7 @@
                                 dep.pkgLongDesc  = self.available.packages[component][dep.pkg].pkgLongDesc
                                 dep.homepage     = self.available.packages[component][dep.pkg].homepage
                                 dep.version      = self.available.packages[component][dep.pkg].version
+                                dep.responsible  = self.available.packages[component][dep.pkg].responsible
                                 # TODO: Assuming 'unstable' is wrong --> handle list of dists
                                 dep.pkgURL       = 'http://packages.debian.org/' + 'unstable/' + \
                                                    self.available.packages[component][dep.pkg].section + \
@@ -454,9 +455,10 @@
                     deppkg.homepage = '#' # Not every package has a homepage tag
                 except:
                     deppkg.homepage = '.' # Something else in case unexpected things happen
-                deppkg.version  = stanza['version'].split('-')[0]
-                deppkg.section  = stanza['section']
-                deppkg.filename = BASEURL+stanza['filename']
+                deppkg.version      = stanza['version'].split('-')[0]
+                deppkg.section      = stanza['section']
+                deppkg.responsible  = stanza['maintainer']
+                deppkg.filename     = BASEURL+stanza['filename']
                 self.packages[component][stanza['package']] = deppkg
             f.close()
 

Modified: trunk/community/infrastructure/scripts/update-tasks
===================================================================
--- trunk/community/infrastructure/scripts/update-tasks	2008-02-18 19:55:43 UTC (rev 1442)
+++ trunk/community/infrastructure/scripts/update-tasks	2008-02-18 19:57:26 UTC (rev 1443)
@@ -111,6 +111,10 @@
 	node.deburl.atts['href'] = deppkg.filename
 	#~ node.deburl.content = "X" ### TODO: add a nice icon here to download the .deb package
 	node.deburl.raw = "<img src=\"/img/deb-icon.png\" />"
+	if deppkg.responsible:
+		node.responsible.content = deppkg.responsible
+	else:
+		node.responsible.raw = "no one"
 
 
 def renderUnofficial(node, package_no):
@@ -128,6 +132,10 @@
 	node.license.content = "License: %s" % deppkg.license
 	node.pkgurl.atts['href'] = deppkg.pkgURL
 	node.pkgurl.content = "Unofficial Debian package"
+	if deppkg.responsible:
+		node.responsible.content = deppkg.responsible
+	else:
+		node.responsible.raw = "no one"
 
 	# Let's try to get the version from the package name
 	# (following Debian standards: <name>_<ver>_<arch>.deb)




More information about the debian-med-commit mailing list