Merge pull request #58 from nanliu/tb/ppa
[puppet-modules/puppetlabs-apt.git] / manifests / builddep.pp
index 35d8d3074b3df09a532f3c50906279e988a2b2bc..997a2064f85e8c372c387c0c50255c4caffd27ba 100644 (file)
@@ -3,10 +3,13 @@
 define apt::builddep() {
   include apt::update
 
-  Class['apt'] -> Apt::Builddep[$name]
-
   exec { "apt-builddep-${name}":
     command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
-    notify  => Exec['apt update'],
+    notify  => Exec['apt_update'],
+  }
+
+  # Need anchor to provide containment for dependencies.
+  anchor { "apt::builddep::${name}":
+    require => Class['apt::update'],
   }
 }