[med-svn] r1390 - trunk/community/infrastructure/test
tille at alioth.debian.org
tille at alioth.debian.org
Fri Feb 15 23:19:46 UTC 2008
Author: tille
Date: 2008-02-15 23:19:46 +0000 (Fri, 15 Feb 2008)
New Revision: 1390
Modified:
trunk/community/infrastructure/test/update-tasks
Log:
Do not print section headings if there is no content
Modified: trunk/community/infrastructure/test/update-tasks
===================================================================
--- trunk/community/infrastructure/test/update-tasks 2008-02-15 22:57:02 UTC (rev 1389)
+++ trunk/community/infrastructure/test/update-tasks 2008-02-15 23:19:46 UTC (rev 1390)
@@ -63,22 +63,22 @@
# error = False
unofficial = cdeps.GetNamesOnlyDict(('unofficial',))
- if len(unofficial) > 0:
+ list_of_dependencies = cdeps.GetListOfDepsForTask(task, dependencytypes=('unofficial',))
+ if len(list_of_dependencies) > 0:
node.unofficial_head.raw = """<h2>
<a id="inofficial-debs" name="inofficial-debs"></a>
Unofficial Debian packages
</h2>"""
- list_of_dependencies = cdeps.GetListOfDepsForTask(task, dependencytypes=('unofficial',))
node.unofficial.repeat(renderUnofficial, range(len(list_of_dependencies)))
# error = False
prospective = cdeps.GetNamesOnlyDict(('prospective',))
- if len(prospective) > 0:
+ list_of_dependencies = cdeps.GetListOfDepsForTask(task, dependencytypes=('prospective',))
+ if len(list_of_dependencies) > 0:
node.unavailable_head.raw = """<h2>
<a id="debs-not-available" name="debs-not-available"></a>
Debian packages not available
</h2>"""
- list_of_dependencies = cdeps.GetListOfDepsForTask(task, dependencytypes=('prospective',))
node.unavailable.repeat(renderProspective, range(len(list_of_dependencies)))
# error = False
More information about the debian-med-commit
mailing list