Skip to content

Commit

Permalink
fix version matching code to include the beta and patch tags
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>
  • Loading branch information
Pierre Tardy committed Jun 27, 2015
1 parent 2b68eee commit 192ce43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion master/buildbot/__init__.py
Expand Up @@ -43,7 +43,7 @@ def getVersion(init_file):

# accept version to be coded with 2 or 3 parts (X.Y or X.Y.Z),
# no matter the number of digits for X, Y and Z
VERSION_MATCH = re.compile(r'(\d+\.\d+(\.\d+)?)(\w|-)*')
VERSION_MATCH = re.compile(r'(\d+\.\d+(\.\d+)?(\w|-)*)')

try:
p = Popen(['git', 'describe', '--tags', '--always'], stdout=PIPE, stderr=STDOUT, cwd=cwd)
Expand Down
2 changes: 1 addition & 1 deletion pkg/buildbot_pkg.py
Expand Up @@ -50,7 +50,7 @@ def getVersion(init_file):

# accept version to be coded with 2 or 3 parts (X.Y or X.Y.Z),
# no matter the number of digits for X, Y and Z
VERSION_MATCH = re.compile(r'(\d+\.\d+(\.\d+)?)(\w|-)*')
VERSION_MATCH = re.compile(r'(\d+\.\d+(\.\d+)?(\w|-)*)')

try:
p = Popen(['git', 'describe', '--tags', '--always'], stdout=PIPE, stderr=STDOUT, cwd=cwd)
Expand Down
2 changes: 1 addition & 1 deletion slave/buildslave/__init__.py
Expand Up @@ -44,7 +44,7 @@ def getVersion(init_file):

# accept version to be coded with 2 or 3 parts (X.Y or X.Y.Z),
# no matter the number of digits for X, Y and Z
VERSION_MATCH = re.compile(r'(\d+\.\d+(\.\d+)?)(\w|-)*')
VERSION_MATCH = re.compile(r'(\d+\.\d+(\.\d+)?(\w|-)*)')

try:
p = Popen(['git', 'describe', '--tags', '--always'], stdout=PIPE, stderr=STDOUT, cwd=cwd)
Expand Down

0 comments on commit 192ce43

Please sign in to comment.