summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-01-13 11:22:52 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-01-13 11:22:52 +0100
commitbeabba00538490d6a5ef6c5fc7a300077f592e17 (patch)
treeb252bdcf23c40692d1f484c7373d87cdd7dd2c56
parent80cd12c72d6ac3c0a5f24ec7020ed5416ac0cbf4 (diff)
downloadATCD-beabba00538490d6a5ef6c5fc7a300077f592e17.tar.gz
Fixed invalid arguments for format, also just open the version header for write only, clearing existing content
* ACE/bin/make_release.py:
-rwxr-xr-xACE/bin/make_release.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ACE/bin/make_release.py b/ACE/bin/make_release.py
index b7d4dc92961..9b424d970cb 100755
--- a/ACE/bin/make_release.py
+++ b/ACE/bin/make_release.py
@@ -124,7 +124,7 @@ def ex (command, allow_fail=False):
def vprint (*args, take_action=False, **kwargs):
"""Prints the supplied message if verbose is enabled or this is a dry-run
- print statenment. Return a bool of the latter case, so the caller can
+ print statement. Return a bool of the latter case, so the caller can
act differently.
"""
@@ -227,14 +227,13 @@ def update_version_files (component):
""" % (component, comp_versions[component + "_major"],
component, comp_versions[component + "_minor"],
component, comp_versions[component + "_micro"],
- component, comp_versions[component + "_micro"],
component, comp_versions[component + "_version"],
component, comp_versions[component + "_code"],
component)
path = get_path(component, component.lower (), "Version.h")
if opts.take_action:
- with open (path, 'r+') as version_h:
+ with open (path, 'w+') as version_h:
version_h.write (version_header)
else:
print ("New Version.h for " + component)