diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-06 14:04:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-06 14:04:55 +0100 |
commit | 8aea5decc6f328d0fc6eeebdc076d20130bf5794 (patch) | |
tree | 55774a08e1b8a15f95ebb3ac0ce4fee8af480342 /methods.py | |
parent | e62941fb5317cffd8f4173da287fd204ee8131e0 (diff) | |
parent | dc61323b2ce5478b1fc07581e64f7b7fcfdaf239 (diff) |
Merge pull request #34020 from gytsen/unify-pack-version
PCK: Set VERSION_PATCH in header, factor out header magic
Diffstat (limited to 'methods.py')
-rw-r--r-- | methods.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/methods.py b/methods.py index 23d66f7f1e..33b8f1cbe7 100644 --- a/methods.py +++ b/methods.py @@ -67,8 +67,7 @@ def update_version(module_version_string=""): f.write("#define VERSION_NAME \"" + str(version.name) + "\"\n") f.write("#define VERSION_MAJOR " + str(version.major) + "\n") f.write("#define VERSION_MINOR " + str(version.minor) + "\n") - if hasattr(version, 'patch'): - f.write("#define VERSION_PATCH " + str(version.patch) + "\n") + f.write("#define VERSION_PATCH " + str(version.patch) + "\n") f.write("#define VERSION_STATUS \"" + str(version.status) + "\"\n") f.write("#define VERSION_BUILD \"" + str(build_name) + "\"\n") f.write("#define VERSION_MODULE_CONFIG \"" + str(version.module_config) + module_version_string + "\"\n") |