From: Nan Liu Date: Wed, 2 May 2012 23:00:27 +0000 (-0700) Subject: (#14287) Fix apt::pin resource for rspec-puppet. X-Git-Tag: 0.0.3~11^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=d1e0e3ee37899edafa1485dde256d61267c484b9;p=puppet-modules%2Fpuppetlabs-apt.git (#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. --- 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":