Merge pull request #57 from nanliu/tb/style
[puppet-modules/puppetlabs-apt.git] / manifests / builddep.pp
1 # builddep.pp
2
3 define apt::builddep() {
4   include apt::update
5
6   Class['apt'] -> Apt::Builddep[$name]
7
8   exec { "apt-builddep-${name}":
9     command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
10     notify  => Exec['apt_update'],
11   }
12
13   # Need anchor to provide containment for dependencies.
14   anchor { "apt::builddep::${name}":
15     require => Class['apt::update'],
16   }
17 }