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

Fix finding of debian branch

parent 06876914
......@@ -185,12 +185,12 @@ def main():
if not origin_debian in repo.references:
# Get default debian branch
debian_branch = BRANCH_TYPES[btypestr].default_debian_branch
default_debian = BRANCH_TYPES[btypestr].default_debian_branch
origin_debian = "origin/" + default_debian
except KeyError:
allowed_branches = ", ".join(x for x in BRANCH_TYPES.keys())
raise ValueError("Malformed branch name '%s', cannot classify as"
" one of %s" % (btypestr, allowed_branches))
origin_debian = "origin/" + debian_branch
repo.git.branch("--track", debian_branch, origin_debian)
print_green("Created branch '%s' to track '%s'" % (debian_branch,
......@@ -260,7 +260,7 @@ def main():
% (build_dir, brnorm, debian_branch))
# Remove cloned repo
if not options.keep_repo:
if mode != 'release' and not options.keep_repo:
print_green("Removing cloned repo '%s'." % repo_dir)
rm("-r", repo_dir)
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