Browse Source

popanal.py:

- sync with popcon.debian.org version: sort packages by name in
  all-popcon-results to prevent data leak.  Closes: #634474
  Thanks Timo Juhani Lindfors for finding this issue.
suites/ascii
Bill Allombert 11 years ago
parent
commit
95dae857c3
  1. 6
      debian/changelog
  2. 14
      popanal.py

6
debian/changelog

@ -1,8 +1,12 @@
popularity-contest (1.54) UNRELEASED; urgency=low
* README: mention move to subversion.
* popanal.py:
- sync with popcon.debian.org version: sort packages by name in
all-popcon-results to prevent data leak. Closes: #634474
Thanks Timo Juhani Lindfors for finding this issue.
-- Bill Allombert <ballombe@debian.org> Thu, 07 Jul 2011 15:48:59 +0200
-- Bill Allombert <ballombe@debian.org> Thu, 28 Jul 2011 12:04:05 +0200
popularity-contest (1.53) unstable; urgency=low

14
popanal.py

@ -262,15 +262,19 @@ def nicename(s):
# dump the results
out = open('results', 'w')
out.write("Submissions: %8d\n" % subcount)
for release in release_list.keys():
releaselist = release_list.keys()
releaselist.sort()
for release in releaselist:
out.write("Release: %-30s %5d\n"
% (release, release_list[release]))
for arch in arch_list.keys():
archlist = arch_list.keys()
archlist.sort()
for arch in archlist:
out.write("Architecture: %-30s %5d\n"
% (arch, arch_list[arch]))
for section in sectlist.keys():
for package in sectlist[section]:
pkglist = votelist.keys()
pkglist.sort()
for package in pkglist:
fv = votelist[package]
out.write("Package: %-30s %5d %5d %5d %5d\n"
% (package, fv.yes, fv.old_unused,

Loading…
Cancel
Save