summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-12-14 21:39:50 +0100
committerintrigeri <intrigeri@boum.org>2010-12-14 21:39:50 +0100
commit5846da98ce72e896bd263a67c9fd3d52dc16585b (patch)
tree85b6232d56296ae24b50dc53972e797898f18217 /manifests
parent4625afacaea115cb3ef20ba2b0f277890c480e93 (diff)
Factorize.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/upgrade_package.pp7
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" ],
}