From c448fc201cdea51d565e7fe4ee3754afd175fdd6 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 12 Sep 2025 05:04:31 -0600 Subject: [PATCH] CI: Allow empty EXTRAVERSION This can be empty for final releases, so adjust the logic to cope with that. Signed-off-by: Simon Glass --- scripts/release_version.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/release_version.py b/scripts/release_version.py index 8868d1f7fda..476f394ed1a 100755 --- a/scripts/release_version.py +++ b/scripts/release_version.py @@ -360,22 +360,22 @@ def update_makefile(info: ReleaseInfo, makefile_path: str = 'Makefile') -> bool: changes_made = False for i, line in enumerate(lines): - if line.startswith('VERSION = '): + if line.startswith('VERSION ='): new_line = f'VERSION = {info.year}' if lines[i] != new_line: lines[i] = new_line changes_made = True - elif line.startswith('PATCHLEVEL = '): + elif line.startswith('PATCHLEVEL ='): new_line = f'PATCHLEVEL = {info.month:02d}' if lines[i] != new_line: lines[i] = new_line changes_made = True - elif line.startswith('SUBLEVEL = '): + elif line.startswith('SUBLEVEL ='): new_line = 'SUBLEVEL =' if lines[i] != new_line: lines[i] = new_line changes_made = True - elif line.startswith('EXTRAVERSION = '): + elif line.startswith('EXTRAVERSION ='): if info.is_final: new_line = 'EXTRAVERSION =' else: