Merge pull request #63 from rskvazh/master

Pin source with originator. Useful for pinning Launchpad PPA
This commit is contained in:
Branan Purvine-Riley 2012-05-25 11:57:12 -07:00
commit 95beb15266

View file

@ -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}"
}