apt-get source ignores default release when source package selected

Bug #1179999 reported by Kived on 2013-05-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Debian)
Confirmed
Unknown
apt (Ubuntu)
Medium
Unassigned

Bug Description

When downloading source packages by source package name, apt-get ignores the default (or specified) release. This does not happen when downloading source packages by binary package name.

I noticed this bug on our build server, which runs Ubuntu 12.04 but has sources for both precise and raring.

Steps to Reproduce:
1. Add an extra release to sources (i.e. add raring sources to precise)
2. Attempt to download source package by source name:
        apt-get source -t precise twisted
  or: apt-get source -o APT::Default-Release=precise twisted
  or: apt-get source twisted/precise
3. Source for twisted from raring is downloaded. (This is the bad behavior.)
4. Attempt to download source package by binary name:
        apt-get source -t precise python-twisted
  or: apt-get source -o APT::Default-Release=precise python-twisted
  or: apt-get source python-twisted/precise
5. Apt will automatically select the source package from the binary name.
6. Source for twisted from precise is downloaded.

ProblemType: BugDistroRelease: Ubuntu 12.04
Package: apt 0.8.16~exp12ubuntu10.5
ProcVersionSignature: Ubuntu 3.2.0-32.51-generic 3.2.30
Uname: Linux 3.2.0-32-generic x86_64
ApportVersion: 2.0.1-0ubuntu14
Architecture: amd64
Date: Tue May 14 10:42:57 2013
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1)
ProcEnviron:
 TERM=screen
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bashSourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)

Kived (kived) wrote :
Changed in apt (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
description: updated
Changed in apt (Debian):
status: Unknown → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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