(#14321) apt::pin resource support release.
[puppet-modules/puppetlabs-apt.git] / manifests / builddep.pp
index 79b7e29e3ce9a55521017f84f6a8d49a649ad6e2..f7537fbb251dc0ab6cf5d0c605b0509ea9880953 100644 (file)
@@ -1,16 +1,12 @@
 # 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'],
   }
 }