]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commit
(#11953) Apt::force passes $version to aptitude
authorMatthaus Litteken <matthaus@puppetlabs.com>
Fri, 13 Jan 2012 23:29:47 +0000 (15:29 -0800)
committerMatthaus Litteken <matthaus@puppetlabs.com>
Fri, 13 Jan 2012 23:29:47 +0000 (15:29 -0800)
commitf759bc039a6a132a262a196450aad2ca9fd5f735
tree7d237300dd879ec674704ff122c4449a682d9b3f
parent30b6748f02cac3200ce1ba973ce043d48c7c2283
(#11953) Apt::force passes $version to aptitude

Previously, even if $version were passed to apt::force, aptitude would just
install the default version of the package available. This updates the aptitude
call to use the version string if it exists. If no version is passed, or if it
is false, no version is added to the aptitude call.  This also updates the
rspec-puppet tests for the define, to reflect the changes to the exec.
manifests/force.pp
spec/defines/force_spec.rb