From 5846da98ce72e896bd263a67c9fd3d52dc16585b Mon Sep 17 00:00:00 2001 From: intrigeri Date: Tue, 14 Dec 2010 21:39:50 +0100 Subject: [PATCH] Factorize. --- manifests/upgrade_package.pp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/manifests/upgrade_package.pp b/manifests/upgrade_package.pp index 99e9c2a..ecdd74f 100644 --- a/manifests/upgrade_package.pp +++ b/manifests/upgrade_package.pp @@ -1,12 +1,7 @@ define apt::upgrade_package ($version = "") { case $version { - '': { - exec { "aptitude -y install $name": - onlyif => [ "grep-status -F Status installed -a -P $name -q", "apt-show-versions -u $name | grep -q upgradeable" ], - } - } - 'latest': { + '', 'latest': { exec { "aptitude -y install $name": onlyif => [ "grep-status -F Status installed -a -P $name -q", "apt-show-versions -u $name | grep -q upgradeable" ], }