e3784987fc
apt::ppa and apt::builddep requires apt class. The anchor introduced for containment of apt-get update causes a dependency loop. apt::ppa appears to depend on apt class sources.d direcory. While apt::builddep have no clear reason for a dependency on apt class. This change refactor both define type, so they no longer cause a dependency loop.
15 lines
341 B
Puppet
15 lines
341 B
Puppet
# builddep.pp
|
|
|
|
define apt::builddep() {
|
|
include apt::update
|
|
|
|
exec { "apt-builddep-${name}":
|
|
command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
|
|
notify => Exec['apt_update'],
|
|
}
|
|
|
|
# Need anchor to provide containment for dependencies.
|
|
anchor { "apt::builddep::${name}":
|
|
require => Class['apt::update'],
|
|
}
|
|
}
|