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

Bug#746412: apt: option -t does not always work



Control: unmerge -1
Contro: reopen -1

Hi Julian,

thanks for your bug triage.

On 14.08.2015 14:07, Julian Andres Klode wrote:
> On Tue, Apr 29, 2014 at 09:21:09PM +0200, Andreas Cadhalpun wrote:
>> 'apt-get -t sid source freerdp' downloads the experimental version
>> (1.1.0~beta1+git20130629-1) instead of the sid version (1.0.2-4):
> 
> Pinning is for binary packages, not for source packages. See the
> (closed) bug report I merged it with.

However, I have to reopen this bug, because your explanation does not
cover the problem I reported, which has nothing to do with pinning.
>From the apt-get man page:
"source causes apt-get to fetch source packages. APT will examine
 the available packages to decide which source package to fetch. It
 will then find and download into the current directory the newest
 available version of that source package while respecting the
 default release, set with the option APT::Default-Release, the -t
 option or per package with the pkg/release syntax, if possible."

So apt-get source should respect the '-t' option.
Sometimes it does, but sometimes it doesn't, for example:

# apt-get -t sid source --download-only dvswitch opal
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Selected version '0.8.3.6-1.2' (sid) for dvswitch
NOTICE: 'dvswitch' packaging is maintained in the 'Svn' version control system at:
svn://svn.debian.org/svn/dvswitch/trunk
Selected version '3.12.8~dfsg-1' (sid) for opal
NOTICE: 'opal' packaging is maintained in the 'Svn' version control system at:
svn://svn.debian.org/pkg-voip/opal/trunk/
Need to get 8085 kB of source archives.
Get:1 http://httpredir.debian.org/debian/ sid/main dvswitch 0.8.3.6-1.2 (dsc) [2006 B]
Get:2 http://httpredir.debian.org/debian/ sid/main dvswitch 0.8.3.6-1.2 (tar) [73.4 kB]
Get:3 http://httpredir.debian.org/debian/ experimental/main opal 3.12.8~dfsg-1 (diff) [22.1 kB]
Get:4 http://httpredir.debian.org/debian/ sid/main dvswitch 0.8.3.6-1.2 (diff) [4151 B]
Get:5 http://httpredir.debian.org/debian/ experimental/main opal 3.12.8~dfsg-1 (dsc) [1823 B]
Get:6 http://httpredir.debian.org/debian/ experimental/main opal 3.12.8~dfsg-1 (tar) [7982 kB]
Fetched 8085 kB in 2s (3862 kB/s)
Download complete and in download only mode

As you can see, it downloads the sid version of dvswitch, as expected, but still the
experimental version of opal. Note how it says:
"Selected version '3.12.8~dfsg-1' (sid) for opal"
The current version of opal in sid is 3.10.10~dfsg2-1.

This inconsistency is the bug I reported here.
As far as I can tell, it is completely unrelated to bug #413044.

Without default release, it downloads the versions from experimental:

# apt-get source --download-only dvswitch opal
Reading package lists... Done
Building dependency tree       
Reading state information... Done
NOTICE: 'dvswitch' packaging is maintained in the 'Git' version control system at:
git://git.debian.org/git/dvswitch/dvswitch.git
NOTICE: 'opal' packaging is maintained in the 'Svn' version control system at:
svn://svn.debian.org/pkg-voip/opal/trunk/
Need to get 8128 kB of source archives.
Get:1 http://httpredir.debian.org/debian/ experimental/main dvswitch 0.9.1-1 (dsc) [1901 B]
Get:2 http://httpredir.debian.org/debian/ experimental/main dvswitch 0.9.1-1 (tar) [121 kB]
Get:3 http://httpredir.debian.org/debian/ experimental/main opal 3.12.8~dfsg-1 (dsc) [1823 B]
Get:4 http://httpredir.debian.org/debian/ experimental/main opal 3.12.8~dfsg-1 (tar) [7982 kB]
Get:5 http://httpredir.debian.org/debian/ experimental/main opal 3.12.8~dfsg-1 (diff) [22.1 kB]
Fetched 8128 kB in 2s (3909 kB/s)
Download complete and in download only mode

With only sid in the sources.list, it downloads the versions from sid: 

# apt-get source --download-only dvswitch opal
Reading package lists... Done
Building dependency tree       
Reading state information... Done
NOTICE: 'dvswitch' packaging is maintained in the 'Svn' version control system at:
svn://svn.debian.org/svn/dvswitch/trunk
NOTICE: 'opal' packaging is maintained in the 'Svn' version control system at:
svn://svn.debian.org/pkg-voip/opal/trunk/
Need to get 5860 kB of source archives.
Get:1 http://httpredir.debian.org/debian/ sid/main dvswitch 0.8.3.6-1.2 (dsc) [2006 B]
Get:2 http://httpredir.debian.org/debian/ sid/main dvswitch 0.8.3.6-1.2 (tar) [73.4 kB]
Get:3 http://httpredir.debian.org/debian/ sid/main dvswitch 0.8.3.6-1.2 (diff) [4151 B]
Get:4 http://httpredir.debian.org/debian/ sid/main opal 3.10.10~dfsg2-1 (dsc) [2544 B]
Get:5 http://httpredir.debian.org/debian/ sid/main opal 3.10.10~dfsg2-1 (tar) [5753 kB]
Get:6 http://httpredir.debian.org/debian/ sid/main opal 3.10.10~dfsg2-1 (diff) [25.2 kB]
Fetched 5860 kB in 1s (3696 kB/s)
Download complete and in download only mode

Best regards,
Andreas


Reply to: