Support multiple APT preferences snippets for the same package name pattern.

This is implemented by adding a "package" parameter to apt::preferences_snippet,
so that define names can be kept unique while the package names are
not necessarily.

Closes: Redmine#3468.
This commit is contained in:
intrigeri 2012-06-08 18:18:50 +02:00
parent 0cb3cd816e
commit 13a0b4484f
3 changed files with 9 additions and 1 deletions

7
README
View file

@ -314,6 +314,13 @@ Example:
priority => 999;
}
apt::preferences_snippet{
'unstable_fallback':
package => '*',
release => 'unstable',
priority => 1;
}
apt::preseeded_package
----------------------

View file

@ -1,4 +1,5 @@
define apt::preferences_snippet(
$package = $name,
$ensure = 'present',
$source = '',
$release,

View file

@ -1,4 +1,4 @@
Package: <%= name %>
Package: <%= package %>
Pin: release a=<%= release %>
Pin-Priority: <%= priority %>