From 83e20806b2a80a1807cc7d4297d015afcb86a11c Mon Sep 17 00:00:00 2001 From: Branan Purvine-Riley Date: Tue, 22 May 2012 17:18:40 -0700 Subject: [PATCH] (#14657) Fix filename when there is a period in the PPA --- manifests/ppa.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/ppa.pp b/manifests/ppa.pp index 64c65bb..6b38e52 100644 --- a/manifests/ppa.pp +++ b/manifests/ppa.pp @@ -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']) { -- 2.45.2