From 75cf15b7c722d980d393fb81ffc85cf0b37ef6da Mon Sep 17 00:00:00 2001 From: intrigeri Date: Wed, 15 Dec 2010 15:18:16 +0100 Subject: [PATCH] Fix packages dependency. --- manifests/upgrade_package.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manifests/upgrade_package.pp b/manifests/upgrade_package.pp index 1c5cd95..8056286 100644 --- a/manifests/upgrade_package.pp +++ b/manifests/upgrade_package.pp @@ -8,6 +8,11 @@ define apt::upgrade_package ($version = "") { default => "=${version}", } + package { ['apt-show-versions', 'dctrl-tools']: + ensure => installed, + require => undef, + } + exec { "aptitude -y install ${name}${version_suffix}": onlyif => [ "grep-status -F Status installed -a -P $name -q", "apt-show-versions -u $name | grep -q upgradeable" ], require => [