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
(#11966) Only invoke apt-get update once.
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
builddep.pp
diff --git
a/manifests/builddep.pp
b/manifests/builddep.pp
index de6191c31b2ff86701a82005e659b5d58343e934..7a9dd332f53d6468b2f740fe3be18acc69c13bbe 100644
(file)
--- a/
manifests/builddep.pp
+++ b/
manifests/builddep.pp
@@
-1,16
+1,12
@@
# builddep.pp
define apt::builddep() {
# builddep.pp
define apt::builddep() {
+ include apt::update
Class['apt'] -> Apt::Builddep[$name]
Class['apt'] -> Apt::Builddep[$name]
- exec { "apt-update-${name}":
- command => '/usr/bin/apt-get update',
- refreshonly => true,
- }
-
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
"],
}
}
}
}