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

Bug#685136: marked as done (cannot override /etc/apt/preferences in /etc/apt/preferences.d/myfile)



Your message dated Fri, 17 Aug 2012 12:08:42 +0200
with message-id <CAAZ6_fBm4G1Xup0ykitAZSFdjZ+Ar-LVV=A5bV0YSEAvR_4cTQ@mail.gmail.com>
and subject line Re: Bug#685136: cannot override /etc/apt/preferences in /etc/apt/preferences.d/myfile
has caused the Debian Bug report #685136,
regarding cannot override /etc/apt/preferences in /etc/apt/preferences.d/myfile
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
685136: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685136
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 0.8.10.3+squeeze1

Seems that I cannot override the pinning defined
in /etc/apt/preferences by a local config file in
/etc/apt/preferences.d. Sample:


/etc/apt/preferences:

	Package: *
	Pin: release a=squeeze-backports
	Pin-Priority: 200


/etc/apt/preferences.d/local

	Package: *
	Pin: release a=squeeze-backports
	Pin-Priority: 500


According to the man page the next run of

	apt-get update
	apt-get install git

would install the git from debian-backports, since I
did not set a target release, 500 == 500, and the
version number of git in debian-backports is higher
than Squeeze's git. But it doesn't.

If I set the 500 in /etc/apt/preferences

	Package: *
	Pin: release a=squeeze-backports
	Pin-Priority: 500

then it works, i.e. overriding the Pin-Priority is
somehow flawed.

This is surely not what one would expect. It took me
quite some time to figure out. Would it be possible
to fix this?


Many thanx

Harri

--- End Message ---
--- Begin Message ---
Hello Harald,

On Fri, Aug 17, 2012 at 11:32 AM, Harald Dunkel <harald.dunkel@aixigo.de> wrote:
> Seems that I cannot override the pinning defined
> in /etc/apt/preferences by a local config file in
> /etc/apt/preferences.d. Sample:
[…]
> This is surely not what one would expect. It took me
> quite some time to figure out. Would it be possible
> to fix this?

man apt_preferences
Section: How APT Interprets Priorities
>>>>>
If any specific-form records match an available package version then the
first such record determines the priority of the package version.
Failing that, if any general-form records match an available package version
then the first such record determines the priority of the package version.
<<<<<

The main file is read before the fragment files, so whatever you set in
the main file will take precedence over settings in a fragment file
(which is good, as you can share fragments across multiple machines
 and do some specific per-machine settings in the main file).

This is therefore documented behavior - and impossible to change
without making this complicated feature even more complicated.
So, I am sorry, but I have to close this bugreport.


Best regards

David Kalnischkies

--- End Message ---

Reply to: