[med-svn] r1377 - trunk/community/infrastructure/test
tille at alioth.debian.org
tille at alioth.debian.org
Thu Feb 14 17:22:07 UTC 2008
Author: tille
Date: 2008-02-14 17:22:07 +0000 (Thu, 14 Feb 2008)
New Revision: 1377
Modified:
trunk/community/infrastructure/test/cddtasktools.py
trunk/community/infrastructure/test/update-tasks
Log:
Remaining Problem: formerly existing packages in Debian which now are not available any more. Solution will be: Leave them out (example: libminc0-dev causes HTML_Template to crash)
Modified: trunk/community/infrastructure/test/cddtasktools.py
===================================================================
--- trunk/community/infrastructure/test/cddtasktools.py 2008-02-14 14:03:19 UTC (rev 1376)
+++ trunk/community/infrastructure/test/cddtasktools.py 2008-02-14 17:22:07 UTC (rev 1377)
@@ -256,9 +256,7 @@
responsible = stanza['responsible']
continue
- debug = 0
if key in dependency_keys:
- debug += 1
# turn alternatives ('|') into real depends for this purpose
# because we are finally interested in all alternatives
dependencies = stanza[key].replace('|',',').split(',')
Modified: trunk/community/infrastructure/test/update-tasks
===================================================================
--- trunk/community/infrastructure/test/update-tasks 2008-02-14 14:03:19 UTC (rev 1376)
+++ trunk/community/infrastructure/test/update-tasks 2008-02-14 17:22:07 UTC (rev 1377)
@@ -90,6 +90,7 @@
def renderOfficial(node, package_no):
# Here we parse just official packages
deppkg = cdeps.tasks[task].dependencies['official'][package_no]
+
node.shortdesc.content = deppkg.pkgShortDesc
node.project.raw = "<table class=\"project\" summary=\"%s\">" % deppkg.pkg
node.anchor.atts['name'] = deppkg.pkg
@@ -115,6 +116,7 @@
def renderUnofficial(node, package_no):
# Here we parse just unofficial packages
deppkg = cdeps.tasks[task].dependencies['unofficial'][package_no]
+
node.shortdesc.content = deppkg.pkgShortDesc
node.longdesc.raw = deppkg.pkgLongDesc
node.project.raw = "<table class=\"project\" summary=\"%s\">" % deppkg.pkg
@@ -142,10 +144,15 @@
# Parsing unavailable packages :(
# PACKAGE THEM! :)
deppkg = cdeps.tasks[task].dependencies['prospective'][package_no]
+
if deppkg.pkgShortDesc:
node.shortdesc.content = deppkg.pkgShortDesc
else:
node.shortdesc.content = "N/A"
+ if deppkg.pkgLongDesc:
+ node.longdesc.content = deppkg.pkgLongDesc
+ else:
+ node.longdesc.content = "N/A"
node.longdesc.raw = deppkg.pkgLongDesc
node.project.raw = "<table class=\"project\" summary=\"%s\">" % deppkg.pkg
if deppkg.responsible:
More information about the debian-med-commit
mailing list