--apt-pocket only adds pocket for the 1rst entry in sources.list

Bug #1313278 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

The option --apt-pocket only adds a pocket to the entries in /etc/apt/sources.list [1] and stops at the first deb entry.
Cloud images use /etc/apt/sources.list.d/cloud_config_sources.list for sources configured via cloud-config ( This is the case for multiiverse and restricted) and main and universe are on different lines.

These components are currently ignored and packages in universe are not tested from -proposed [2]

[1] http://anonscm.debian.org/gitweb/?p=autopkgtest/autopkgtest.git;a=commitdiff;h=e6cb422d3d59dceca909563ca86f788f27a374bc
[2] http://d-jenkins.ubuntu-ci:8080/view/Utopic/view/AutoPkgTest/job/utopic-adt-bedtools/4/ARCH=amd64,label=adt/console

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: autopkgtest 2.15
ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Apr 27 09:54:57 2014
InstallationDate: Installed on 2013-09-03 (235 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130902)
PackageArchitecture: all
SourcePackage: autopkgtest
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Changed in autopkgtest (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
summary: - --apt-pocket only add pocket for components in sources.list
+ --apt-pocket only adds pocket for components in sources.list
Changed in autopkgtest (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote : Re: --apt-pocket only adds pocket for components in sources.list

hm, actually only multiverse and restricted are in cloud_config_sources.list

Changed in autopkgtest (Ubuntu):
importance: High → Medium
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

It's fine without the 'exit' in

awk '/^deb / { if ($3 !~ /-/) { $3 = $3"-%s"; print; $1="deb-src"; print; exit}}' /etc/apt/sources.list > /etc/apt/sources.list.d/%s.list

otherwise it stops at the first line and main and universe are on 2 lines.

summary: - --apt-pocket only adds pocket for components in sources.list
+ --apt-pocket only adds pocket for the 1rst component in sources.list
summary: - --apt-pocket only adds pocket for the 1rst component in sources.list
+ --apt-pocket only adds pocket for the 1rst entry in sources.list
Changed in autopkgtest (Ubuntu):
importance: Medium → High
description: updated
Martin Pitt (pitti)
Changed in autopkgtest (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

So we need to fix both -- don't exit after the first line, and also convert sources.list.d/*

Revision history for this message
Martin Pitt (pitti) wrote :
Changed in autopkgtest (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 2.16

---------------
autopkgtest (2.16) unstable; urgency=medium

  * adt-buildvm-ubuntu-cloud: Use "-monitor null" instead of "-monitor none",
    as the latter does not work with older Qemu versions.
  * adt-virt-qemu: Don't call qemu-img with -q option, it doesn't exist in
    older Qemu versions yet. Redirect stdout instead.
  * tools/adt-setup-vm: Disable downloading of package translations to save
    some bandwidth. Thanks Jean-Baptiste Lallement.
  * adt-virt-qemu: Fix race condition that caused a ValueError when the exit
    code file was not written yet.
  * adt-virt-qemu: Automatically detect a normal user to run tests as, unless
    -u is given. This works similarly to -lxc.
  * Add tests for adt-virt-user with non-default users.
  * adt-virt-qemu: Disable shared downtmp for now, it breaks on older Qemu
    versions and the current setup does not work with different UIDs in the
    testbed.
  * adt-virt-qemu: Use file locks for host-side ssh port forwards to avoid
    race condition.
  * adt-run: Drop usage of dh_listpackages, it needs debhelper which is an
    undeclared (and also unwanted) dependency. Parse debian/control directly
    and make use of our existing arch tag resolution. (LP: #1312276)
  * adt-virt-qemu: Copy host's timezone into VM to avoid time zone skew when
    copying files.
  * adt-virt-qemu: Show determined normal user instead of <user> in ssh
    message, to get a fully copy&pasteable command.
  * adt-virt-qemu: Ensure tests which run as root have $HOME set.
  * Fix --proposed option to also apply to sources.list.d/* lists and to
    multiple sources. (LP: #1313278)
  * adt-buildvm-ubuntu-cloud: Install haveged, to avoid failing tests due to
    running out of entropy.
  * adt-virt-qemu: Add --qemu-options for passing additional options to QEMU.
    Thanks Diogo Matsubara!

 -- Martin Pitt <email address hidden> Sun, 27 Apr 2014 22:37:15 +0200

Changed in autopkgtest (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.