exec { "apt-builddep-${name}":
command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
- notify => Exec["apt update"],
+ notify => Exec['apt update'],
}
}
Class['apt'] -> Apt::Ppa[$title]
include apt::params
+ include apt::update
$sources_list_d = $apt::params::sources_list_d
fail('lsbdistcodename fact not available: release parameter required')
}
- exec { "apt-update-${name}":
- command => "${apt::params::provider} update",
- refreshonly => true,
- }
$filename_without_slashes = regsubst($name,'/','-','G')
$filename_without_ppa = regsubst($filename_without_slashes, '^ppa:','','G')
exec { "add-apt-repository-${name}":
command => "/usr/bin/add-apt-repository ${name}",
- notify => Exec["apt-update-${name}"],
creates => "${sources_list_d}/${sources_list_d_filename}",
+ notify => Exec['apt update'],
}
file { "${sources_list_d}/${sources_list_d_filename}":
t.sub(/^ppa:/,'').gsub('/','-') << "-" << "#{release}.list"
end
- it { should contain_exec("apt-update-#{t}").with(
+ it { should contain_exec("apt update").with(
'command' => '/usr/bin/apt-get update',
'refreshonly' => true
)
it { should contain_exec("add-apt-repository-#{t}").with(
'command' => "/usr/bin/add-apt-repository #{t}",
- 'notify' => "Exec[apt-update-#{t}]",
+ 'notify' => "Exec[apt update]",
'creates' => "/etc/apt/sources.list.d/#{filename}"
)
}