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'],
define apt::ppa(
$release = $::lsbdistcodename
) {
-
- Class['apt'] -> Apt::Ppa[$title]
-
include apt::params
include apt::update
exec { "add-apt-repository-${name}":
command => "/usr/bin/add-apt-repository ${name}",
creates => "${sources_list_d}/${sources_list_d_filename}",
- require => Package['python-software-properties'],
+ require => [ File[$sources_list_d],
+ Package['python-software-properties'] ],
notify => Exec['apt_update'],
}
it { should contain_exec("add-apt-repository-#{t}").with(
'command' => "/usr/bin/add-apt-repository #{t}",
'creates' => "/etc/apt/sources.list.d/#{filename}",
- 'require' => "Package[python-software-properties]",
+ 'require' => ["File[/etc/apt/sources.list.d]", "Package[python-software-properties]"],
'notify' => "Exec[apt_update]"
)
}