Fix packages dependency.
This commit is contained in:
parent
a084ac642c
commit
75cf15b7c7
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,11 @@ define apt::upgrade_package ($version = "") {
|
|||
default => "=${version}",
|
||||
}
|
||||
|
||||
package { ['apt-show-versions', 'dctrl-tools']:
|
||||
ensure => installed,
|
||||
require => undef,
|
||||
}
|
||||
|
||||
exec { "aptitude -y install ${name}${version_suffix}":
|
||||
onlyif => [ "grep-status -F Status installed -a -P $name -q", "apt-show-versions -u $name | grep -q upgradeable" ],
|
||||
require => [
|
||||
|
|
Loading…
Reference in a new issue