# builddep.pp
define apt::builddep() {
+ include apt::update
- Class['apt'] -> Apt::Ppa[$title]
-
- exec { "apt-update-${name}":
- command => "/usr/bin/apt-get update",
- refreshonly => true,
- }
+ Class['apt'] -> Apt::Builddep[$name]
exec { "apt-builddep-${name}":
- command => "/usr/bin/apt-get -y --force-yes build-dep $name",
- notify => Exec["apt-update-${name}"],
+ command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
+ notify => Exec['apt_update'],
}
}