Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Hotfix: accept 3-digit version numbers
Browse files Browse the repository at this point in the history
fixes #20
  • Loading branch information
antoineco committed Jul 21, 2016
1 parent 7fc7b61 commit a258a70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
}

# parameters validation
validate_re($version, '^([0-9]|[0-9]u[0-9]{1,2})$', '$version must be formated as \'major\'u\'minor\' or just \'major\'')
validate_re($version, '^([0-9]|[0-9]u[0-9]{1,3})$', '$version must be formated as \'major\'u\'minor\' or just \'major\'')
validate_re($type, '^(jre|jdk)$', '$type must be either \'jre\' or \'jdk\'')
validate_re($format_real, '^(rpm|tar\.gz)$', '$format must be either \'rpm\' or \'tar.gz\'')
validate_bool($check_checksum, $add_alternative)
Expand Down
2 changes: 1 addition & 1 deletion manifests/installation.pp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
$install_path = $oracle_java::install_path

# parameters validation
validate_re($version, '^([0-9]|[0-9]u[0-9]{1,2})$', '$version must be formated as \'major\'u\'minor\' or just \'major\'')
validate_re($version, '^([0-9]|[0-9]u[0-9]{1,3})$', '$version must be formated as \'major\'u\'minor\' or just \'major\'')
validate_re($type, '^(jre|jdk)$', '$type must be either \'jre\' or \'jdk\'')
validate_bool($check_checksum, $add_alternative)

Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"project_page": "https://github.com/antoineco/aco-oracle_java",
"source": "git://github.com/antoineco/aco-oracle_java.git",
"summary": "Puppet module to install Oracle Java on Linux systems",
"version": "2.7.0",
"version": "2.7.0-hf",
"tags": ["jre","jdk","oracle","java"],
"dependencies": [
{
Expand Down

0 comments on commit a258a70

Please sign in to comment.