From a5ba24695ff99ec86b8b8355cb22fbc926c903e6 Mon Sep 17 00:00:00 2001 From: Daniel Thornton Date: Mon, 23 Apr 2012 20:40:24 +0000 Subject: [PATCH] (#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. --- manifests/ppa.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, } -- 2.45.2