summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-12-15 10:00:47 +0100
committerintrigeri <intrigeri@boum.org>2010-12-15 10:00:47 +0100
commita06bf5f71bb06cf5a817e5bdc5229a68150ce187 (patch)
treec4e50578e5715e7f97ae77eb8e86ce0ca270d511 /manifests
parentaf8ecf1e9f6745a2c2d8c09b0f1e1d7c572981b9 (diff)
apt::upgrade_package: explicitly depend on needed packages.
This define was previously broken unless dctrl-tools and apt-show-versions were installed.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/upgrade_package.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/upgrade_package.pp b/manifests/upgrade_package.pp
index 9f280c6..1c5cd95 100644
--- a/manifests/upgrade_package.pp
+++ b/manifests/upgrade_package.pp
@@ -10,7 +10,10 @@ define apt::upgrade_package ($version = "") {
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 => Exec['apt_updated'],
+ require => [
+ Exec['apt_updated'],
+ Package['apt-show-versions', 'dctrl-tools'],
+ ],
}
}