Skip to content

Commit

Permalink
cp_lib/split_version.py split_version_string expects to return major,…
Browse files Browse the repository at this point in the history
…minor,patch, but tools/make_load_settings.py only expects it to return major,minor, resulting in "ValueError: too many values to unpack (expected 2)" when attempting to have the version auto-incremented on build - added patch to generated version
  • Loading branch information
mrtonyg committed Jun 14, 2017
1 parent f8d7732 commit d42112c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/make_load_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def _do_my_tweak(old_line):
value = old_line[offset + 1:].strip()
major, minor, patch = split_version_string(value)
minor += 1
version = "%d.%d" % (major, minor)
version = "%d.%d.%d" % (major, minor, patch)
logging.debug(
"Fix Version - increment from {} to {}".format(value, version))

Expand Down

0 comments on commit d42112c

Please sign in to comment.