Package: mini-buildd
Version: 2.0.7~bpo12+1

mini-buildd requires (in Archive.clean) that all archive URLs end in a slash. 
Yet it (always?) adds another slash before 'dists' (e.g. 
Archive.ReleaseFile(f"{archive.url}/dists/{self.codename}/") in 
Source.mbd_check). With behaving servers, this shouldn't be a problem, but I 
ran into deb.nodesource.com, which doesn't behave. Check the difference 
betweeen GETting

https://deb.nodesource.com/node_18.x/dists/bookworm/Release

and

https://deb.nodesource.com/node_18.x//dists/bookworm/Release

I guess the check for the trailing slash is a precaution in case you forget to 
use a slash when using the archive URL in the code, but maybe you could skip 
the joining slash when you have already ensured that the archive URL ends in 
one.

(Now, I tried getting around the check by updating the config database 
directly, but it still didn't work because nodesource.com have blocked the 
Python-urllib User-Agent, the bastards, but that's a separate issue.)

-- 
Magnus Holmgren
./¯\_/¯\. Milient
(also holmg...@debian.org)

Reply via email to