Author: tille
Date: Fri Oct 26 13:01:13 2012
New Revision: 3627

URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=3627
Log:
Record what tasks we found over time

Modified:
    blends/trunk/team_analysis_tools/count-dependencies.py

Modified: blends/trunk/team_analysis_tools/count-dependencies.py
URL: 
http://svn.debian.org/wsvn/blends/blends/trunk/team_analysis_tools/count-dependencies.py?rev=3627&op=diff
==============================================================================
--- blends/trunk/team_analysis_tools/count-dependencies.py (original)
+++ blends/trunk/team_analysis_tools/count-dependencies.py Fri Oct 26 13:01:13 
2012
@@ -61,6 +61,7 @@
     u_dirs = listdir(root)
 
     tasks = {}
+    tasks_found = []
 
     # Read some data about first med-* packages which never made it into any 
Vcs
     if BLEND == 'med':
@@ -75,6 +76,8 @@
            if mver['task'] == 'bio-contrib':
                # we are not interested in non-free dependencies
                continue
+           if not mver['task'] in tasks_found:
+               tasks_found.append(mver['task'])
            task = taskscontent(mver['version'], mver['date'], mver['task'], 
mver['recommends'])
            if tasks.has_key(task.datekey):
                # try to match several single metapackages to what we know 
today as multibinary
@@ -137,6 +140,8 @@
             if pkg.has_key('package'):
                 package = pkg['package']
                 if package != BLEND+'-common' and package != BLEND+'-tasks' 
and package != BLEND+'-config':
+                   if not package.replace(BLEND+'-', '') in tasks_found:
+                       tasks_found.append(package.replace(BLEND+'-', ''))
                     if pkg.has_key('recommends'):
                        recommends = pkg['recommends']
                        task.add_recommends(package,recommends)
@@ -153,6 +158,8 @@
        task = tasks[t]
         print task
 
+    tasks_found.sort()
+    print tasks_found
 
 if __name__ == '__main__':
   main()


_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

Reply via email to