Browse Source

[Petter Reinholdtsen]

* Add variable mirrorbase to popanal.py, to make it easier to set up
     a new server.
suites/ascii
Petter Reinholdtsen 17 years ago
parent
commit
1beb6f7fa8
  1. 8
      debian/changelog
  2. 5
      popanal.py

8
debian/changelog

@ -1,3 +1,11 @@
popularity-contest (1.32) UNRELEASED; urgency=low
[Petter Reinholdtsen]
* Add variable mirrorbase to popanal.py, to make it easier to set up
a new server.
-- Petter Reinholdtsen <pere@debian.org> Sun, 31 Jul 2005 21:42:57 +0200
popularity-contest (1.31) unstable; urgency=low
[Petter Reinholdtsen]

5
popanal.py

@ -38,6 +38,7 @@ release_list = {}
arch_list = {}
subcount = 0
mirrorbase = "/org/ftp.debian.org/ftp"
def parse_depends(depline):
l = []
@ -236,9 +237,9 @@ def read_submissions(stream):
# main program
for d in glob.glob('/org/ftp.debian.org/ftp/dists/stable/*/binary-i386/Packages'):
for d in glob.glob('%s/dists/stable/*/binary-i386/Packages' % mirrorbase):
read_depends(d)
for d in glob.glob('/org/ftp.debian.org/ftp/dists/unstable/*/binary-i386/Packages'):
for d in glob.glob('%s/dists/unstable/*/binary-i386/Packages' % mirrorbase):
read_depends(d)
read_submissions(sys.stdin)

Loading…
Cancel
Save