Bug#893754: autopkgtest 5.1 "autopkgtest-default-release" breaks tests that exercise apt

Iain Lane iain at orangesquash.org.uk
Thu Mar 22 09:43:51 UTC 2018

Thanks Steve.

On Wed, Mar 21, 2018 at 05:18:53PM -0700, Steve Langasek wrote:
> When autopkgtest 5.2 was recently rolled out to the Ubuntu infrastructure,
> various package-manager-related test suites began to fail as a result of the
> use of APT::Default-Release introduced in 5.1:
> […]

I see autopkgtest already does:

  for default in default_releases:
      script += 'printf "\nPackage: *\\nPin: release a=%(default)s\\nPin-Priority: 990\\n" >> /etc/apt/preferences.d/autopkgtest-%(release)s; ' % \
          {'release': release, 'default': default}

if there are default releases passed to this function, which there are
only for -updates. But AIUI (jak?) this is effectively the same as
APT::Default-Release anyway, so I'm proposing that we always do this for
the default release instead of the apt.conf.d snippet.


Iain Lane                                  [ iain at orangesquash.org.uk ]
Debian Developer                                   [ laney at debian.org ]
Ubuntu Developer                                   [ laney at ubuntu.com ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20180322/f26a0413/attachment.sig>

More information about the autopkgtest-devel mailing list