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

Re: rmadison from within autopkgtest



On Wed, Jun 21, 2017 at 05:49:51PM +0200, Luca Falavigna wrote:
> Hi,
> 
> I'm trying to create a DEP-8 test which tries to retrieve dynamically
> version and component of a given package (hello, in my case) using
> rmadison. See attached the script and the correspondent control file.
> 
> I would expect the command
> dget -u http://deb.debian.org/debian/pool/$component/h/hello/hello_$version.dsc
> 
> to be dynamically changed into
> dget -u http://deb.debian.org/debian/pool/main/h/hello/hello_2.10-1.dsc
> 
> but when I test it with autopkgtest it seems rmadison output from
> within autopkgtest does not populate variables, therefore dget
> complains:
> 
> dget: retrieving http://deb.debian.org/debian/pool//h/hello/hello_.dsc
> --2017-06-21 15:38:02--  http://deb.debian.org/debian/pool//h/hello/hello_.dsc
> Resolving deb.debian.org (deb.debian.org)... 128.31.0.62,
> 140.211.166.202, 149.20.4.15, ...
> [...]
> HTTP request sent, awaiting response... 404 Not Found
> 2017-06-21 15:38:02 ERROR 404: Not Found.
> dget: wget hello_.dsc
> http://deb.debian.org/debian/pool//h/hello/hello_.dsc failed
> 
> I launched autopkgtest as follows:
> /usr/bin/autopkgtest --apt-upgrade --output-dir
> /srv/debomatic-amd64/unstable/pool/debomatic_0.22-2/adt_out_dir
> --summary /srv/debomatic-amd64/unstable/pool/debomatic_0.22-2/adt_out_dir/log_summary
> /srv/debomatic-amd64/unstable/pool/debomatic_0.22-2/debomatic_0.22-2_amd64.changes
> -- schroot unstable-amd64-debomatic
> 
> I probably did something silly, but after several attempts I can't
> really figure out what's wrong.

My guess would be that you are missing wget in the testbed (just add it
you your dependencies in debian/tests/control).

That said, just using `apt-get source hello` would be a lot less fragile
in your use case.

Attachment: signature.asc
Description: PGP signature


Reply to: