X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fbuilddep.pp;h=3294f713391c79d6f07e400c690f15d00c4dc611;hb=eee5ff8e38b0661a32376aabb2f4b76a914ba67a;hp=f7537fbb251dc0ab6cf5d0c605b0509ea9880953;hpb=669f5b51fb429fb29e0b5698fa4dadd74ac74cfb;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/builddep.pp b/manifests/builddep.pp index f7537fb..3294f71 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', + notify => Exec['apt_update'], + } + + # Need anchor to provide containment for dependencies. + anchor { "apt::builddep::${name}": + require => Class['apt::update'], } }