From 5d94369f15145ed39df43b18858f818b17d56b8e Mon Sep 17 00:00:00 2001 From: Zach Leslie Date: Mon, 21 May 2012 14:52:36 -0700 Subject: [PATCH] pass ensure through so that we can remove pin prefs too --- manifests/source.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/source.pp b/manifests/source.pp index 0040c14..ce801bc 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -36,12 +36,13 @@ define apt::source( } - if ($pin != false) and ($ensure == 'present') { + if ($pin != false) { # Get the host portion out of the url so we can pin to origin $url_split = split($location, '/') $host = $url_split[2] apt::pin { $name: + ensure => $ensure, priority => $pin, before => File["${name}.list"], origin => $host, -- 2.45.2