Merge pull request #63 from rskvazh/master
Pin source with originator. Useful for pinning Launchpad PPA
This commit is contained in:
commit
95beb15266
1 changed files with 8 additions and 5 deletions
|
@ -6,7 +6,8 @@ define apt::pin(
|
|||
$packages = '*',
|
||||
$priority = 0,
|
||||
$release = '',
|
||||
$origin = ''
|
||||
$origin = '',
|
||||
$originator = '',
|
||||
) {
|
||||
|
||||
include apt::params
|
||||
|
@ -17,6 +18,8 @@ define apt::pin(
|
|||
$pin = "release a=${release}"
|
||||
} elsif $origin != '' {
|
||||
$pin = "origin \"${origin}\""
|
||||
} elsif $originator != '' {
|
||||
$pin = "release o=${originator}"
|
||||
} else {
|
||||
$pin = "release a=${name}"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue