X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fbuilddep.pp;h=3a059c273d389751da4359e1d2f38e6c6a9e27de;hb=3799e3a23c7d4e74c99aa4ec7e42de0b486ffe67;hp=35d8d3074b3df09a532f3c50906279e988a2b2bc;hpb=82967a22fa2493773715f7da6e6cd9fa5df7f592;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/builddep.pp b/manifests/builddep.pp index 35d8d30..3a059c2 100644 --- a/manifests/builddep.pp +++ b/manifests/builddep.pp @@ -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'], } }