pass flags as string of single letter

This commit is contained in:
nagas 2013-07-22 14:48:32 +02:00
parent e4fe87ca9d
commit 63a0db4cf2

View file

@ -13,9 +13,9 @@ define apt::ppa(
fail('lsbdistcodename fact not available: release parameter required') fail('lsbdistcodename fact not available: release parameter required')
} }
$filename_without_slashes = regsubst($name, '/', '-', G) $filename_without_slashes = regsubst($name, '/', '-', 'G')
$filename_without_dots = regsubst($filename_without_slashes, '\.', '_', G) $filename_without_dots = regsubst($filename_without_slashes, '\.', '_', 'G')
$filename_without_ppa = regsubst($filename_without_dots, '^ppa:', '', G) $filename_without_ppa = regsubst($filename_without_dots, '^ppa:', '', 'G')
$sources_list_d_filename = "${filename_without_ppa}-${release}.list" $sources_list_d_filename = "${filename_without_ppa}-${release}.list"
$package = $::lsbdistrelease ? { $package = $::lsbdistrelease ? {