Skip to content

Commit

Permalink
Fix st2client version for bintray debian packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakshmi Kannan committed Dec 17, 2015
1 parent 47898f1 commit 6e0e937
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion manifests/package/install.pp
Expand Up @@ -16,6 +16,7 @@
define st2::package::install(
$version = undef,
$revision = undef,
$repo_base = undef,
) {
case $::osfamily {
'Debian': {
Expand All @@ -31,7 +32,14 @@
}
# Temporary Hack while fixing build pipeline
if $name =~ /client/ {
$_package_version = "${_version}.${_revision}-1"
case $_repo_base {
/^https:\/\/dl.bintray.com/: {
$_package_version = "${_version}-${_revision}"
}
default: {
$_package_version = "${_version}.${_revision}-1"
}
}
} else {
$_package_version = "${_version}-${_revision}"
}
Expand Down
1 change: 1 addition & 0 deletions manifests/profile/client.pp
Expand Up @@ -82,6 +82,7 @@
st2::package::install { $_client_packages:
version => $_version,
revision => $_revision,
repo_base => $_repo_base,
}

### This should be a versioned download too... currently on master
Expand Down

0 comments on commit 6e0e937

Please sign in to comment.