Fix apt::upgrade_package when used multiple times.
This commit is contained in:
parent
bbe2c8aee9
commit
575e4ab9cc
1 changed files with 12 additions and 3 deletions
|
@ -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}":
|
||||
|
|
Loading…
Reference in a new issue