From 3f323f9a13ef57e58e1ddb629d4763ab62f211ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrer=20=C3=96zen?= Date: Sat, 13 Aug 2005 22:03:20 +0000 Subject: [PATCH] =?UTF-8?q?En=20uzun=20actions.py=20betikli=20yaz=C4=B1l?= =?UTF-8?q?=C4=B1m.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/repostats.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/repostats.py b/tools/repostats.py index 0521041c..9f946f00 100755 --- a/tools/repostats.py +++ b/tools/repostats.py @@ -61,6 +61,8 @@ mostp_name = None mostp_count = 0 nr_binpaks = 0 nr_patches = 0 +maxpy_lines = 0 +maxpy_name = None errors = [] @@ -77,6 +79,15 @@ for pak in paks: for e in errs: errors.append([pak, e]) continue + try: + f = file(os.path.join(pak, "actions.py")) + L = len(f.readlines()) + if L > maxpy_lines: + maxpy_lines = L + maxpy_name = spec.source.name + f.close() + except: + pass nr_binpaks += len(spec.packages) nr_patches += len(spec.source.patches) if len(spec.source.patches) > mostp_count: @@ -102,6 +113,9 @@ echo(u"

Toplam peç sayısı %d

" % nr_patches) if mostp_count > 0: echo(u"

En çok peçlenen yazılım %d peçle %s!

" % (mostp_count, mostp_name)) +if maxpy_lines > 0: + echo(u"

En uzun actions.py betiğine sahip yazılım %d satırla %s!

" % (maxpy_lines, maxpy_name)) + if errors != []: print "

Hatalar

" for e in errors: