[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#561971: "apt-get source" always downloads default version



tags 561971 fixed-upstream
thanks

Hi Gregor Herrmann,

First of all: Thanks for your excellent bugreport...
2009/12/21 gregor herrmann <gregoa@debian.org>:
> `apt-get source $package/$release' and `apt-get source
> $package=$version' (and `apt-get source -t $release $package') have
> stopped working for me.
... and sorry for the breakage!


> Looking through apt's changelog, it might be related to the changes
> in cmdline/apt-get.cc; or is something wrong on my machine?
Yes, these are the breakers. I have more or less rewritten FindSrc()
which is responsible for finding the correct version in apt in  0.7.25
to fix a few misbehaviors and add these Warnings about ignored
things as APT did this without a note before which was a bit
confusing - but i made two mistakes:

It does the ignoring now way to aggressive for "easy" packages.
(Easy means here: binary packages which have the same name
as their source packages as these packages doesn't have a
Source-tag in their status stanzas)

And the other problem: While it need to drop the release name if
it can't find a binary package with this information (you mentioned
already #441178 ) apt can try to find the version in the sources entries,
instead of ignoring them without a try...

A patch fixing these issues is already committed in Michaels
branch [0] and will be part of the next upload - most properly a dot-release.

Until then you can circumvent this bug for "easy" packages
by adding the  --only-source flag to your apt-get source command.
(This will not work for "harder" packages as for these a binary to source
mapping is needed, but in this case you will not hit the bug...)


Season's Greetings,

David Kalnischkies

[0] http://bazaar.launchpad.net/~mvo/apt/mvo/revision/1693



Reply to: