diff options
author | intrigeri <intrigeri@boum.org> | 2010-12-14 21:39:50 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-12-14 21:39:50 +0100 |
commit | 5846da98ce72e896bd263a67c9fd3d52dc16585b (patch) | |
tree | 85b6232d56296ae24b50dc53972e797898f18217 /manifests | |
parent | 4625afacaea115cb3ef20ba2b0f277890c480e93 (diff) | |
download | puppet-apt-5846da98ce72e896bd263a67c9fd3d52dc16585b.tar.gz puppet-apt-5846da98ce72e896bd263a67c9fd3d52dc16585b.tar.bz2 |
Factorize.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/upgrade_package.pp | 7 |
1 files changed, 1 insertions, 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" ], } |