[elbe-devel] [PATCH] validation: use parent directories

Benedikt Spranger b.spranger at linutronix.de
Tue Nov 21 09:47:37 CET 2017


On Tue, 21 Nov 2017 06:50:47 +0100
Manuel Traut <manuel.traut at linutronix.de> wrote:

Hi Manu,

> In the past we had examples in the repo using httpredir. 
> I'd like to have a check that 'httpredir' is not in an URL and print sth.
> like this note as an error message. 

What about deb.debian.org and ...
There is no simple way to verify a URL is not a redirect service.

What do you think about the following validation scheme:

 1) Check for "dists/$DIST/InRelease"
 2) Download if exists. Goto 9
 3) Check for "dists/$DIST/Release"
 4) Download if exists. Goto 6
 5) Abort with error "Not a Debian Repo"
 6) Check for "dists/$DIST/Release.gpg"
 7) Download if exists. Goto 9
 8) Abort "Not a signed Repo"
 9) Validate InRelease/Release
10) Parse InRelease/Release for arch/source-specific content files
11) Check if files exists. Goto 13
12) Abort "Debian mirror misses some files"
13) Simple validation succeded.

Bene



More information about the elbe-devel mailing list