[med-svn] r1276 - trunk/community/infrastructure/test

tille at alioth.debian.org tille at alioth.debian.org
Sun Feb 3 12:36:46 UTC 2008


Author: tille
Date: 2008-02-03 12:36:46 +0000 (Sun, 03 Feb 2008)
New Revision: 1276

Modified:
   trunk/community/infrastructure/test/cddtasktools.py
   trunk/community/infrastructure/test/update-tasks_using_python-debian
Log:
Fixed reading list of _all_ tasks


Modified: trunk/community/infrastructure/test/cddtasktools.py
===================================================================
--- trunk/community/infrastructure/test/cddtasktools.py	2008-02-03 12:12:56 UTC (rev 1275)
+++ trunk/community/infrastructure/test/cddtasktools.py	2008-02-03 12:36:46 UTC (rev 1276)
@@ -117,7 +117,8 @@
     def GetTasknames(self):
         for task in os.listdir(self.tasksdir):
             if os.path.isfile("%s/%s" % (self.tasksdir, task)):
-                self.tasknames.append(self.GetTaskDependencies(task))
+                self.tasknames.append(task)
+        self.tasknames.sort()
 
     def GetAllDependencies(self):
         if self.tasknames == []:

Modified: trunk/community/infrastructure/test/update-tasks_using_python-debian
===================================================================
--- trunk/community/infrastructure/test/update-tasks_using_python-debian	2008-02-03 12:12:56 UTC (rev 1275)
+++ trunk/community/infrastructure/test/update-tasks_using_python-debian	2008-02-03 12:36:46 UTC (rev 1276)
@@ -20,20 +20,23 @@
 from cddtasktools import Available, CddDependencies, Task, TaskDependencies
 
 
-tdeps=TaskDependencies('debian-med', 'bio')
-tdeps.GetTaskDependencies()
+cdeps=CddDependencies('debian-med')
+cdeps.GetAllDependencies()
 
-print "---------- official ----------"
-for tdep in tdeps.dependencies['official']:
-    print tdep.pkg, ':', tdep.pkgShortDesc
+for task in cdeps.tasknames:
+    print "**********  %s  *************" % task
+    tdeps = cdeps.tasks[task]
+    print "---------- official ----------"
+    for tdep in tdeps.dependencies['official']:
+        print tdep.pkg, ':', tdep.pkgShortDesc
 
-print "---------- unofficial ----------"
-for tdep in tdeps.dependencies['unofficial']:
-    print tdep.pkg, ':', tdep.pkgShortDesc
+    print "---------- unofficial ----------"
+    for tdep in tdeps.dependencies['unofficial']:
+        print tdep.pkg, ':', tdep.pkgShortDesc
 
-print "---------- prospective ----------"
-for tdep in tdeps.dependencies['prospective']:
-    print tdep.pkg, ':', tdep.pkgShortDesc
+    print "---------- prospective ----------"
+    for tdep in tdeps.dependencies['prospective']:
+        print tdep.pkg, ':', tdep.pkgShortDesc
 
 sys.exit(0)
 




More information about the debian-med-commit mailing list