[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#959755: Bug #959755: Package pages for source/buster-backports gets 500 error



On Thu, 2020-06-18 at 14:39 +0200, Laura Arjona Reina wrote:
> I still can reproduce this error, and also today webmaster@ received
> a report about some more URLs failing.
> 
> URL for existing packages in stable-backports report a HTTP 500 error
> at the time of writing (Thu, 18 Jun 2020 10:25:41 +0200).
> For instance:
> https://packages.debian.org/source/stable-backports/linux
> https://packages.debian.org/source/stable-backports/apt-cacher-ng
> do not work (HTTP 500)

The issue is that the suite doesn't have MD5 checksums enabled, which
the packages.d.o code relies on. After that was diagnosed a while ago,
I thought that ftp-master were re-enabling them, but apparently that
never happened.

When I looked at this previously, this seemed to work as a short-term
"fix":

adsb@picconi:~$ diff -u /srv/packages.debian.org/bin/parse-sources ./parse-sources 
--- /srv/packages.debian.org/bin/parse-sources	2020-02-14 06:06:33.126000572 +0000
+++ ./parse-sources	2020-02-27 09:49:07.123732777 +0000
@@ -103,6 +103,7 @@
 		$source_names_suite{$data{'package'}} = 1;
 		delete $data{'binary'};
 
+		$data{files} = $data{'checksums-sha256'} unless $data{files};
 		$data{files} =~ s/\s*\n\s*/\01/sog;
 		$data{files} =~ s/^\01//sg;
 
Longer term, that should probably iterate over the list of possible
checksums and use whichever it finds first.

Rhonda: would an MR for either version of the patch here be helpful?

Regards,

Adam


Reply to: