apt-get source package=version fails if binary name != source name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
APT |
Fix Released
|
Unknown
|
|||
apt (Debian) |
Fix Released
|
Unknown
|
|||
apt (Ubuntu) |
Fix Released
|
Low
|
Michael Vogt |
Bug Description
Binary package hint: apt
'apt-get source package=version' doesn't work (source not found) for packages in which the binary package name doesn't match the source package name. The problem isn't that the source doesn't exist in the repository (it does, and 'apt-get source package' does the right thing). The problem seems to be that supplying a specific version prevents apt-get source from performing a binary->source mapping.
An example follows. Notice that 'apt-get source package' pulls the exact version I want, and 'apt-get source package=version' works if <package> is the source package name rather than the binary package name:
(T: menlow)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for finger
(T: menlow)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Need to get 32.6kB of source archives.
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 32.6kB in 0s (1289kB/s)
sh: gcc: not found
dpkg-source: warning: Couldn't determine gcc system type, falling back to default (native compilation)
gpg: Signature made Fri Feb 9 00:00:42 2007 UTC using DSA key ID 1880283C
gpg: Can't check signature: public key not found
dpkg-source: extracting bsd-finger in bsd-finger-0.17
dpkg-source: unpacking bsd-finger_
dpkg-source: applying ./bsd-finger_
(T: menlow)
(T: menlow)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Need to get 32.6kB of source archives.
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 32.6kB in 0s (733kB/s)
sh: gcc: not found
dpkg-source: warning: Couldn't determine gcc system type, falling back to default (native compilation)
gpg: Signature made Fri Feb 9 00:00:42 2007 UTC using DSA key ID 1880283C
gpg: Can't check signature: public key not found
dpkg-source: extracting bsd-finger in bsd-finger-0.17
dpkg-source: unpacking bsd-finger_
dpkg-source: applying ./bsd-finger_
Changed in apt: | |
status: | Unknown → New |
Changed in apt: | |
status: | Unknown → New |
Changed in apt: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in apt: | |
status: | New → Confirmed |
Changed in apt: | |
status: | New → Fix Released |
Changed in apt (Debian): | |
status: | Confirmed → Fix Released |
tags: | added: oem-services |
The attached patch to apt-get fixes the problem for me. I'm a bit worried the patch subtly breaks something but I haven't found any problems while testing.
The code in question was added to apt in rev. 1.59 of apt-get: cvs.debian. org/apt/ cmdline/ apt-get. cc?rev= 1.156&root= deity&view= log
http://