Browse Source

[ Petter Reinholdtsen ]

* Make sure popanal do not crash when an invalid timestamp is found
     in the POPULARITY-CONTEST-0 header.
   * Remove code in cron.weekly to sleep a random period of time up to
     an hour, to test hypothesis that this was not the reason for the
     increase in submissions seen the last few months.  Possibly
     reopens #440493, #459910.
   * Change popcon.pl to handle the fact that
     /org/ftp.root/debian/dists/stable/main/binary-*/Packages.gz is not
     UTF-8.  Otherwise it would croak on a name containing 'ó'.
suites/ascii
Petter Reinholdtsen 14 years ago
parent
commit
b958abd778
  1. 3
      debian/changelog
  2. 7
      popcon.pl

3
debian/changelog

@ -7,6 +7,9 @@ popularity-contest (1.44) UNRELEASED; urgency=low
an hour, to test hypothesis that this was not the reason for the
increase in submissions seen the last few months. Possibly
reopens #440493, #459910.
* Change popcon.pl to handle the fact that
/org/ftp.root/debian/dists/stable/main/binary-*/Packages.gz is not
UTF-8. Otherwise it would croak on a name containing 'ó'.
-- Petter Reinholdtsen <pere@debian.org> Sun, 13 Jan 2008 14:32:32 +0100

7
popcon.pl

@ -224,7 +224,12 @@ for (glob("/org/ftp.root/debian/dists/stable/*/binary-*/Packages.gz"),
{
/([^[:space:]]+)/ or die("incorrect package name");
$file = $1;#Untaint
open AVAIL, "-|:utf8","zcat $file";
if ($file =~ m%/dists/stable/%) {
# Stable release (Etch) do not use UTF-8 in its package files
open AVAIL, "-|:iso-8859-1","zcat $file";
} else {
open AVAIL, "-|:utf8","zcat $file";
}
while(<AVAIL>)
{
/^Package: (.+)/ and do {$p=$1;$maint{$p}="bug";$source{$p}=$p;next;};

Loading…
Cancel
Save