(#16075) Allow pinning on version numbers
This is needed to be able to produce the following pinning from apt_preferences(5): Package: perl Pin: version 5.8* Pin-Priority: 1001
This commit is contained in:
parent
710b1c6a66
commit
14b2eb1ca0
1 changed files with 4 additions and 1 deletions
|
@ -7,7 +7,8 @@ define apt::pin(
|
|||
$priority = 0,
|
||||
$release = '',
|
||||
$origin = '',
|
||||
$originator = ''
|
||||
$originator = '',
|
||||
$version = ''
|
||||
) {
|
||||
|
||||
include apt::params
|
||||
|
@ -20,6 +21,8 @@ define apt::pin(
|
|||
$pin = "origin \"${origin}\""
|
||||
} elsif $originator != '' {
|
||||
$pin = "release o=${originator}"
|
||||
} elsif $version != '' {
|
||||
$pin = "version ${version}"
|
||||
} else {
|
||||
$pin = "release a=${name}"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue