From 0a46769ba42d3476b0f37a85db49b3276658d293 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 22 Jan 2025 13:55:03 +1100 Subject: [PATCH] waf: Handle no version label in VERSION when a release Closes #5185 --- wscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index 0e977362b6..680c039470 100755 --- a/wscript +++ b/wscript @@ -1436,10 +1436,10 @@ def load_version(ctx): def configure_version(conf): version_label = load_version(conf) v_str = version["__RTEMS_MAJOR__"] + "." + version["__RTEMS_MINOR__"] - if int(version["__RTEMS_REVISION__"]) != 0 and version_label != "": + if int(version["__RTEMS_REVISION__"]) != 0: v_str += "." + version["__RTEMS_REVISION__"] - if version_label != "": - v_str += "." + version_label + if version_label is not None and version_label != "": + v_str += "." + version_label conf.msg("Configure RTEMS version", v_str, color="YELLOW")