Skip to content
Snippets Groups Projects
Commit b54fa347 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Export DEBEMAIL and DEBFULLNAME

parent 18be409c
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,6 @@ def main():
raise ValueError(red("Invalid argument! Mode must be one: %s"
% ", ".join(AVAILABLE_MODES)))
os.environ["DEVFLOW_BUILD_MODE"] = mode
# Load the repository
original_repo = utils.get_repository()
......@@ -176,6 +175,12 @@ def main():
raise ValueError("Malformed branch name '%s', cannot classify as"
" one of %s" % (branch, allowed_branches))
# Fix needed environment variables
os.environ["DEVFLOW_BUILD_MODE"] = mode
git_config = original_repo.config_reader()
os.environ["DEBFULLNAME"] = git_config.get_value("user", "name")
os.environ["DEBEMAIL"] = git_config.get_value("user", "mail")
# Get the debian branch
debian_branch = utils.get_debian_branch(branch)
origin_debian = "origin/" + debian_branch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment