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

Fix addition of version files to repo

parent 4c080739
......@@ -297,15 +297,16 @@ def main():
if mode == "release":
repo.git.tag(debian_branch_tag, sign_tag_opt, "-m %s" % tag_message)
# Add files to repo
call("grep \"__version_vcs\" -r . -l -I | xargs git add -f")
# Create debian packages
version_files = []
for _, pkg_info in config['packages'].items():
if pkg_info.get("version_file"):
# Add files to repo
repo.git.add("-f ", *version_files)
# Export version info to debuilg environment
os.environ["DEB_DEVFLOW_DEBIAN_VERSION"] = debian_version
os.environ["DEB_DEVFLOW_VERSION"] = python_version
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