Skip to content

Commit

Permalink
Merge pull request #60 from branan/ppa_filename
Browse files Browse the repository at this point in the history
(#14657) Fix filename when there is a period in the PPA
  • Loading branch information
jamtur01 committed May 23, 2012
2 parents 64e1bf9 + 83e2080 commit efb2ed2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manifests/ppa.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
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']) {
Expand Down

0 comments on commit efb2ed2

Please sign in to comment.