Author: tille
Date: Thu Oct 25 09:57:42 2012
New Revision: 3622

URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=3622
Log:
Ignore very old versions with single metapackages - it is more reasonable to 
fetch the numbers we are interested in for statistics manually rather than 
faking some control files

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=3622&op=diff
==============================================================================
--- blends/trunk/team_analysis_tools/count-dependencies.py (original)
+++ blends/trunk/team_analysis_tools/count-dependencies.py Thu Oct 25 09:57:42 
2012
@@ -6,7 +6,7 @@
 
 from sys import stderr, exit
 from os import listdir
-from os.path import isfile
+from os.path import isfile, exists
 from fnmatch import fnmatch
 import re
 from subprocess import Popen, PIPE
@@ -62,6 +62,9 @@
            continue
         debiandir= root + '/' + u + '/debian/'
         changelog = debiandir + 'changelog'
+       if not exists(changelog):
+           # print >>stderr, "Version %s seems to be an old package layout tag 
which is ignored here" % u
+           continue
 
         # Read output of dpkg-parsechangelog
         p = Popen("LC_ALL=C dpkg-parsechangelog -l"+changelog, shell=True, 
bufsize=4096,


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

Reply via email to