aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/upgrade_package.pp15
1 files changed, 12 insertions, 3 deletions
diff --git a/manifests/upgrade_package.pp b/manifests/upgrade_package.pp
index 8056286..358bd9e 100644
--- a/manifests/upgrade_package.pp
+++ b/manifests/upgrade_package.pp
@@ -8,9 +8,18 @@ define apt::upgrade_package ($version = "") {
default => "=${version}",
}
- package { ['apt-show-versions', 'dctrl-tools']:
- ensure => installed,
- require => undef,
+ if !defined(Package['apt-show-versions']) {
+ package { 'apt-show-versions':
+ ensure => installed,
+ require => undef,
+ }
+ }
+
+ if !defined(Package['dctrl-tools']) {
+ package { 'dctrl-tools':
+ ensure => installed,
+ require => undef,
+ }
}
exec { "aptitude -y install ${name}${version_suffix}":