]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commit
(#11966) apt module containment for apt_update.
authorNan Liu <nan@puppetlabs.com>
Mon, 7 May 2012 22:27:53 +0000 (15:27 -0700)
committerNan Liu <nan@puppetlabs.com>
Mon, 7 May 2012 22:27:53 +0000 (15:27 -0700)
commit666a05dea1856ef358edbc9929152983106c8970
treef8c76a342b3e647a0f9e14823b1ac4b7780cad06
parent5d013aab09b22a5d8ecb5df08e1acf3904e14f54
(#11966) apt module containment for apt_update.

The update to separate Exec["apt-get update ${name}"] to single exec in
apt::update class resulted in apt-get update command to be dangled.
Previously if user specified Package['package_a'] <-
Apt::Resource['source_a'], the original refactor would no longer
guarantee apt-get update is executed before the package is installed.
This patch fixes the problem using the anchor resource and ensuring the
old behaviour is maintained and user can depend on apt-get update
command being invoked if they specify dependency on any apt::*
define resource type as well as the apt class.
manifests/builddep.pp
manifests/init.pp
manifests/ppa.pp
manifests/source.pp