#438999 apt-get source does not respect APT::Default-Release if the source package doesn't have a binary package of the same name

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Matt Kraai
Date:
2013-12-12 09:27:07 UTC
Severity:
normal
#438999#5
Date:
2007-08-21 14:03:19 UTC
From:
To:
If APT::Default-Release is set and I run "apt-get source" on a source
package that has no binary package of the same name (e.g.,
addresses-for-gnustep), it downloads the latest version, even if it's
newer than the one corresponding to APT::Default-Release.  It does
this even if I specify --source-only.

#438999#10
Date:
2010-06-05 06:48:10 UTC
From:
To:
I found this bug after wondering why this command retrieves the source
package from experimental:

$ apt-get source libdrm/unstable

but a slightly modified version works as intended, i.e. fetches the
version from unstable:

$ apt-get source libdrm2/unstable

The libdrm2 package is built from libdrm source, and there is no libdrm
binary package.  A nice explanation is found in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=441178#50, where it is
also explained that another command,

$ apt-get source libdrm=2.4.18-5

will fetch the desired version.  Would it be correct to merge #438999
and #441178?

Sven

#438999#15
Date:
2013-03-06 14:59:11 UTC
From:
To:
Control: found -1 0.9.7.7
[...]

Same problem with eglibc vs libc6.

Moreover, "apt-get source eglibc/zzz" downloads the experimental
version while "apt-get source -t zzz eglibc" gives an error.

#438999#22
Date:
2013-06-21 13:09:36 UTC
From:
To:
Similar strange behaviour with "linux" package, on a stable distribution with
unstable pinned to -10.

apt-get source linux --> gets linux-3.9 from unstable (understandable, although
doesn’t honor pinning)
apt-get source linux/wheezy --> gets linux-3.9 from unstable  (not what a user
would expect)
apt-get source linux-image-3.2.0-4-amd64 --> gets linux-3.9 from unstable (also
not what a user would expect)
apt-get source linux-image-3.2.0-4-amd64/wheezy --> gets linux-3.2 from wheezy
(expected)

My /etc/apt/preferences :
Package: *
Pin: release a=unstable
Pin-Priority: -10

my /etc/apt/sources.list
deb http://ftp.fr.debian.org/debian/ wheezy main non-free contrib
deb-src http://ftp.fr.debian.org/debian/ wheezy main non-free contrib

deb http://ftp.fr.debian.org/debian/    unstable main contrib non-free
deb-src http://ftp.fr.debian.org/debian/   unstable main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free