Hi Otto

Getting the list of source packages with a particular file in them can be done by apt-file (see "--index-names dsc").

sources.debian.org can provide single files - you need an API call to find the correct URL for the file first. I don't know if the service admins would get upset at 1655 files being downloaded in the following fashion.

apt-file search --index-names dsc --package-only debian/gbp.conf |
while read pkg; do
    echo -n $pkg
url=$(curl -s https://sources.debian.org/api/src/zzuf/0.15-4/debian/gbp.conf/ | jq -r .raw_url)
    curl -s https://sources.debian.org/$url > $pkg
    echo .
done

(takes 1-2s per source package it seems)

sources.d.o can also do lookups by file sha256sum. The simple 2-line gbp.conf that sets debian/master is in 183 source packages according to:

https://sources.debian.org/api/sha256/?checksum=c4a26b58ec236eab6919435af0267c29840191a97beeb3caa4712e42a6d51be8

which might permit some pre-filtering of the list of packages to inspect.

regards
Stuart


--
Stuart Prescott   http://www.nanonanonano.net/ stu...@nanonanonano.net
Debian Developer  http://www.debian.org/       stu...@debian.org
GPG fingerprint   90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7

Reply via email to