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

Bug#973308: lintian: Automate importation of valid archive sections via http://



Hello,

On 2020-10-28 17:57, Felix Lechner wrote:
> Lintian does not presently utilize any network resources, and while
> that may change in the future, it would be the wrong way forward. It
> makes no sense for Lintian to query the archive for valid sections for
> every invocation.

I agree.

> Ideally, the file from FTP Master that is described below would be
> packaged and backported as needed. It is probably not updated often. I
> asked Ganneff about this on #debian-ftp but have not heard back. Maybe
> it could also be packaged together with other Debian data, such as
> policy versions, which are being worked on in this bug:
> 
>     https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=968154#52
> 
> Packaging such data for Debian is also found in other areas, for
> example in 'dns-root-data'.

I completely support packaging sections.822 into some data package so as
lintian and possibly other tools could read it without using network.

> An alternative would be update ./data in our repo for each new
> release, but that data remains static for each release. We keep
> scripts for such updates in ./private. Contributions are welcome.

If packaging sections.822 is not an option, this alternative could work.
I used the following command in 9904e258:

curl -sSL https://metadata.ftp-master.debian.org/sections.822 \
| grep ^Section: | cut -d ' ' -f 2 | grep -v / \
| sort > data/fields/archive-sections

Best,
Andrius


Reply to: