diff options
author | intrigeri <intrigeri@boum.org> | 2010-12-16 18:14:23 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-12-16 18:14:23 +0100 |
commit | 575e4ab9ccfc9933a35f79deba8651b7eec8a0cb (patch) | |
tree | a9de84f5ebe9081e3ef8cdac279f734e5b0107aa /manifests | |
parent | bbe2c8aee9b00dad4313644611e6a75d40ca8d49 (diff) | |
download | puppet-apt-575e4ab9ccfc9933a35f79deba8651b7eec8a0cb.tar.gz puppet-apt-575e4ab9ccfc9933a35f79deba8651b7eec8a0cb.tar.bz2 |
Fix apt::upgrade_package when used multiple times.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/upgrade_package.pp | 15 |
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}": |