Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge pull request #60 from branan/ppa_filename
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
builddep.pp
diff --git
a/manifests/builddep.pp
b/manifests/builddep.pp
index de6191c31b2ff86701a82005e659b5d58343e934..997a2064f85e8c372c387c0c50255c4caffd27ba 100644
(file)
--- a/
manifests/builddep.pp
+++ b/
manifests/builddep.pp
@@
-1,16
+1,15
@@
# builddep.pp
define apt::builddep() {
# builddep.pp
define apt::builddep() {
-
- Class['apt'] -> Apt::Builddep[$name]
-
- exec { "apt-update-${name}":
- command => '/usr/bin/apt-get update',
- refreshonly => true,
- }
+ include apt::update
exec { "apt-builddep-${name}":
command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
exec { "apt-builddep-${name}":
command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
- notify => Exec["apt-update-${name}"],
+ notify => Exec['apt_update'],
+ }
+
+ # Need anchor to provide containment for dependencies.
+ anchor { "apt::builddep::${name}":
+ require => Class['apt::update'],
}
}
}
}