unattended_upgrades: Allow changing legacy_origin
[puppet-modules/puppetlabs-apt.git] / manifests / builddep.pp
index f7537fbb251dc0ab6cf5d0c605b0509ea9880953..3a059c273d389751da4359e1d2f38e6c6a9e27de 100644 (file)
@@ -3,10 +3,14 @@
 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'],
+    command   => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
+    logoutput => 'on_failure',
+    require   => Exec['apt_update'],
+  }
+
+  # Need anchor to provide containment for dependencies.
+  anchor { "apt::builddep::${name}":
+    require => Class['apt::update'],
   }
 }