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

Re: testing is missing from http://qa.debian.org/cgi-bin/dcontrol



Re: Szépe Viktor 2014-05-19 <[🔎] 20140519152023.Horde.wUmZoyXNziBk3x_GEGIETQ7@szepe.net>
> Thank you very much for your reply!!
> 
> I do backports like Apache 2.4 for wheezy
> https://gist.github.com/szepeviktor/11087679
> 
> I'd like to avoid `apt-get source` when discovering dsc file in testing:
> 
> # dirty parsing from packages.debian.org
> DSCURL="$(wget -qO- "https://packages.debian.org/${SUITE}/${PKG}"; \
>     | grep -o 'http.*\.dsc">\[' | cut -d'"' -f1)"
> 
> # use dget to download the source based on the dsc URL
> dget -x "$DSCURL"
> 
> I'd like to use dcontrol which queries this service. Am I right?
> Now that you've fixed the releases list
> 
> dcontrol libapache2-mod-macro@amd64/jessie
> But this does NOT find the source package, e.g. libapache2-mod-macro has no
> dsc file beacuse it is a binary package.
> 
> 
> Please advise something how to query a Debian database to get a certain
> package's source in a certain release without apt.
> pkg-to-backport -> source pkg name -> dsc file -> sources
> Thank you again!

Well the obvious answere here is the one you don't want: apt-get
source, apt-cache showsrc.

dcontrol doesn't do binary->source mapping, so you'd need to code that
in two steps by looking at the Source: header (and falling back to
Package if it's not there).

Otherwise, you could probably look at the PTS, it also links to the
.dsc (and does redirect you to the source package if you ask for a
binary).

> Do you anything about the SOAP API development?
> https://wiki.debian.org/qa.debian.org/pts/SoapInterface
> Or is there the aswer here?
> http://sources.debian.net/doc/api/

No idea.

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/


Reply to: