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

Re: debian/gbp.cnf analytics? (Re: Re: Accepting DEP14?)



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/ stuart@nanonanonano.net
Debian Developer  http://www.debian.org/       stuart@debian.org
GPG fingerprint   90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7


Reply to: