From d1e0e3ee37899edafa1485dde256d61267c484b9 Mon Sep 17 00:00:00 2001 From: Nan Liu Date: Wed, 2 May 2012 16:00:27 -0700 Subject: [PATCH] (#14287) Fix apt::pin resource for rspec-puppet. The shorthand syntax cause rspec-puppet failure for external modules depending on the puppet-apt module. This patch uses the require metaparameter to avoid this issue. --- manifests/source.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/source.pp b/manifests/source.pp index 95768dc..999ff68 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -30,7 +30,10 @@ define apt::source( } if $pin != false { - apt::pin { $release: priority => $pin } -> File["${name}.list"] + apt::pin { $release: + priority => $pin, + before => File["${name}.list"] + } } exec { "${name} apt update":