Needs to document which files are considered below /etc/apt/preferences.d
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/
/etc/apt/
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/
Code:
Package: *
Pin: release o=LP-PPA-
Pin-Priority: 400
__________________
Notes:
The example at the link below didn't work for me:
https:/
Found the problem here:
http://
http://
affects: | ubuntu-moblin-remix → linux |
affects: | linux → apt |
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 |
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).