Merge pull request #48 from nanliu/tb/lint
[puppet-modules/puppetlabs-apt.git] / manifests / builddep.pp
1 # builddep.pp
2
3 define apt::builddep() {
4
5   Class['apt'] -> Apt::Builddep[$name]
6
7   exec { "apt-update-${name}":
8     command     => '/usr/bin/apt-get update',
9     refreshonly => true,
10   }
11
12   exec { "apt-builddep-${name}":
13     command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
14     notify  => Exec["apt-update-${name}"],
15   }
16 }