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:
parent
0cb3cd816e
commit
13a0b4484f
3 changed files with 9 additions and 1 deletions
7
README
7
README
|
@ -314,6 +314,13 @@ Example:
|
|||
priority => 999;
|
||||
}
|
||||
|
||||
apt::preferences_snippet{
|
||||
'unstable_fallback':
|
||||
package => '*',
|
||||
release => 'unstable',
|
||||
priority => 1;
|
||||
}
|
||||
|
||||
apt::preseeded_package
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
define apt::preferences_snippet(
|
||||
$package = $name,
|
||||
$ensure = 'present',
|
||||
$source = '',
|
||||
$release,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Package: <%= name %>
|
||||
Package: <%= package %>
|
||||
Pin: release a=<%= release %>
|
||||
Pin-Priority: <%= priority %>
|
||||
|
||||
|
|
Loading…
Reference in a new issue