X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fbuilddep.pp;h=3294f713391c79d6f07e400c690f15d00c4dc611;hb=62d4557db613a745dd7f463df7c3b7a2df357754;hp=7a9dd332f53d6468b2f740fe3be18acc69c13bbe;hpb=3684f88372959cb8dd6eb5bce99b6a07db43f058;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/builddep.pp b/manifests/builddep.pp index 7a9dd33..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'], } }