(#14657) Fix filename when there is a period in the PPA
This commit is contained in:
parent
cdfad26d83
commit
83e20806b2
1 changed files with 3 additions and 2 deletions
|
@ -12,8 +12,9 @@ define apt::ppa(
|
|||
fail('lsbdistcodename fact not available: release parameter required')
|
||||
}
|
||||
|
||||
$filename_without_slashes = regsubst($name,'/','-','G')
|
||||
$filename_without_ppa = regsubst($filename_without_slashes, '^ppa:','','G')
|
||||
$filename_without_slashes = regsubst($name, '/', '-', G)
|
||||
$filename_without_dots = regsubst($filename_without_slashes, '\.', '_', G)
|
||||
$filename_without_ppa = regsubst($filename_without_dots, '^ppa:', '', G)
|
||||
$sources_list_d_filename = "${filename_without_ppa}-${release}.list"
|
||||
|
||||
if ! defined(Package['python-software-properties']) {
|
||||
|
|
Loading…
Reference in a new issue