Skip to content

Commit 49353c7

Browse files
authored
Allow double digit minor and build versions
When providing the version to install if a double digit minor or build number is provided (ie, 3.12) the module will fail reporting that the version doesn't make sense. This patch corrects this.
1 parent 234dc97 commit 49353c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manifests/repo/apt.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
if $version == 'LATEST' {
5959
$repo_ver = $version
6060
} else {
61-
if $version =~ /^\d\.\d$/ {
61+
if $version =~ /^\d\.\d+$/ {
6262
$repo_ver = "${version}/LATEST"
63-
} elsif $version =~ /^(\d)\.(\d)\.(\d).*$/ {
63+
} elsif $version =~ /^(\d)\.(\d+)\.(\d+).*$/ {
6464
$repo_ver = "${1}.${2}/${1}.${2}.${3}"
6565
} else {
6666
fail("${version} doesn't make sense for ${::operatingsystem}!")

0 commit comments

Comments
 (0)