From: Daniel Thornton Date: Mon, 23 Apr 2012 20:40:24 +0000 (+0000) Subject: (#14138) Modify apt::ppa's update-apt exec to use the ${apt::params::provider} parame... X-Git-Tag: 0.0.3~9^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a5ba24695ff99ec86b8b8355cb22fbc926c903e6;p=puppet-modules%2Fpuppetlabs-apt.git (#14138) Modify apt::ppa's update-apt exec to use the ${apt::params::provider} parameter rather than explicitly calling aptitude. Previously the update-apt exec would always use /usr/bin/aptitude, which is not necessarily present. This change makes it use ${apt::params::provider} which defaults to /usr/bin/apt-get. This also adds some consistency so that ${apt::params::provider} is used everywhere. --- diff --git a/manifests/ppa.pp b/manifests/ppa.pp index 095d8f1..9450366 100644 --- a/manifests/ppa.pp +++ b/manifests/ppa.pp @@ -13,7 +13,7 @@ define apt::ppa( } exec { "apt-update-${name}": - command => '/usr/bin/aptitude update', + command => "${apt::params::provider} update", refreshonly => true, }