summaryrefslogtreecommitdiff
path: root/manifests/upgrade_package.pp
diff options
context:
space:
mode:
authorGabriel Filion <gabster@lelutin.ca>2016-06-29 17:31:14 +0200
committerGabriel Filion <gabster@lelutin.ca>2016-06-29 17:31:14 +0200
commit2bbfe8cab9ba8125feb9f54865e3025bf4d355ee (patch)
treec991efa091ad6eef692f0b8f4fdca1f3c3bde075 /manifests/upgrade_package.pp
parent354bada72153cfe29f0e91b0fff16d1eeaf5f0e2 (diff)
Fix some minor lint issues
This was shown by the testing that was added in merge request !34
Diffstat (limited to 'manifests/upgrade_package.pp')
-rw-r--r--manifests/upgrade_package.pp4
1 files changed, 3 insertions, 1 deletions
diff --git a/manifests/upgrade_package.pp b/manifests/upgrade_package.pp
index 30572c9..e61b15d 100644
--- a/manifests/upgrade_package.pp
+++ b/manifests/upgrade_package.pp
@@ -1,3 +1,5 @@
+# Install a package either to a certain version, or while making sure that it's
+# always the latest version that's installed.
define apt::upgrade_package (
$version = ''
) {
@@ -23,7 +25,7 @@ define apt::upgrade_package (
}
exec { "apt-get -q -y -o 'DPkg::Options::=--force-confold' install ${name}${version_suffix}":
- onlyif => [ "grep-status -F Status installed -a -P $name -q", "apt-show-versions -u $name | grep -q upgradeable" ],
+ onlyif => [ "grep-status -F Status installed -a -P ${name} -q", "apt-show-versions -u ${name} | grep -q upgradeable" ],
require => Package['apt-show-versions', 'dctrl-tools'],
before => Exec['apt_updated']
}