APT

Needs to document which files are considered below /etc/apt/preferences.d

Bug #505880 reported by SilverWave
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
APT
Fix Released
Undecided
Unassigned
apt (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

The APT preferences file does not work if its filename contains a dot.
/etc/apt/preferences.d/ubuntu-mozilla-daily-pin.400 < Nope!
/etc/apt/preferences.d/ubuntu-mozilla-daily-pin-400 < OK

Linux neon 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux
__________________

Example that works:
/etc/apt/preferences.d/ubuntu-mozilla-daily-pin-400
Code:

Package: *
Pin: release o=LP-PPA-ubuntu-mozilla-daily
Pin-Priority: 400
__________________

Notes:
The example at the link below didn't work for me:
https://wiki.ubuntu.com/MozillaTeam/PPAs

Found the problem here:
http://ubuntuforums.org/showpost.php?p=8636003&postcount=35
http://ubuntuforums.org/showpost.php?p=8636047&postcount=36

SilverWave (silverwave)
affects: ubuntu-moblin-remix → linux
SilverWave (silverwave)
affects: linux → apt
Loïc Minier (lool)
affects: ubuntu → apt (Ubuntu)
summary: - apt_preferences APT preferences filename can not contain a dot.
+ Needs to document which files are considered below
+ /etc/apt/preferences.d
Changed in apt (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Changed in apt:
status: New → Confirmed
Revision history for this message
Loïc Minier (lool) wrote :

This is correct; the code will skip files which start with a dot, or if it contains a character which is not alpha numeric or "-" or "_"; it will also only consider regular files for some reason (ignoring e.g. symbolic links and subdirs).

This is supposed to be some run-parts-alike filter mechanism to avoid reading editor backup files, or files leftover by the dpkg conffile mechanism.

However, this should be documented in the man page.

See the sources.list man page and the section on .list files for some example filenames (ignore the requirement of files ending in .list).

Revision history for this message
Julian Andres Klode (juliank) wrote :

That's fixed now.

Changed in apt (Ubuntu):
status: Triaged → Fix Released
Changed in apt:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.