Commit b78d6238 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

devflow-autopkg from debian branchese

parent 6da63769
......@@ -166,6 +166,7 @@ def main():
# Get current branch name and type and check if it is a valid one
branch = original_repo.head.reference.name
branch = utils.undebianize(branch)
branch_type_str = utils.get_branch_type(branch)
if branch_type_str not in BRANCH_TYPES.keys():
......
......@@ -184,3 +184,11 @@ def get_branch_type(branch_name):
def version_to_tag(version):
return version.replace("~", "")
def undebianize(branch):
if branch == "debian":
return "master"
elif branch.startswith("debian-"):
return branch.replace("debian-", "")
else:
return branch
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