Commit 1d91b08f authored by Seblu's avatar Seblu
Browse files

Excluse by default version containing pre

parent 07a81fde
......@@ -46,7 +46,7 @@ url =
# Exclude upstream versions matching this regex before looking for the last
# Useful to remove release candiates and beta versions
# Default is .*(rc|beta|alpha).*
# Default is .*(rc|beta|alpha|pre).*
# Set to empty string to not exclude
#regex_exclude =
......
......@@ -216,7 +216,7 @@ class VersionController(object):
# list all found versions
logging.debug("Found versions: %s" % v)
# exclude versions
regex_exclude = value.get("regex_exclude", ".*(rc|beta|alpha).*")
regex_exclude = value.get("regex_exclude", ".*(rc|beta|alpha|pre).*")
if regex_exclude != "":
logging.debug("Exclusion regex: %s" % regex_exclude)
v -= set(filter(lambda x: re.search(regex_exclude, x), v))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment