Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Commit

Permalink
Fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
haxorof committed Feb 18, 2017
1 parent d1efc43 commit cc54747
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,17 @@ Installs HashiCorp's open source DevOps Tool Suite.
## Features

* Easy install of HashiCorp's open source DevOps Tool Suite.
* Consul
* Nomad
* Packer
* Terraform
* Vault
* Installs tools in accordans with [Filesystem Hierarchy Standard](http://www.pathname.com/fhs/)
* Binaries under /opt
* Configruation under /etc/opt
* Variable data under /var/opt
* Add tools to system path for easier access
* Symbolic links under /opt/bin

## Requirements

Expand Down
8 changes: 6 additions & 2 deletions files/hashicorp_available_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class HashiCorpVersionParser(HTMLParser):
"""Parses HTML with anchors which contains the versions"""
parse_version = False
version_pattern = re.compile('.+_([\\d\\.]+)')
version_pattern = re.compile('.+_(.+)')
versions = []

def handle_starttag(self, tag, attrs):
Expand Down Expand Up @@ -79,7 +79,11 @@ def main(parser):
for version in versions:
sys.stdout.write(version + ' ')
elif options.release == 'latest':
sys.stdout.write(versions[0])
for version in versions:
# To exclude beta and rc releases
if "-" not in version:
sys.stdout.write(version)
break
else:
for version in versions:
if version.startswith(options.release):
Expand Down

0 comments on commit cc54747

Please sign in to comment.