For those playing along at home...

On 19/08/2024 14:53, Stuart Prescott wrote:

    url=$(curl -s https://sources.debian.org/api/src/zzuf/0.15-4/debian/gbp.conf/ | jq -r .raw_url)

The API URL should obviously be

        https://sources.debian.org/api/src/$pkg/latest/debian/gbp.conf/

and curl will also need -L to follow the redirect from 'latest' to the specific version:

url=$(curl -sL https://sources.debian.org/api/src/$pkg/latest/debian/gbp.conf/ | jq -r .raw_url)


--
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