Skip to content

[VERSIONING] fix indentation

Alessandro Pecugi requested to merge ap/vers-fix-indent into scarthgap_kickoff

Fix wrong indentation of 'with' block in clea-os-versioning which causes the following build error:

ERROR: Error in compiling python function in /home/yoctouser/workdir/layers/meta-seco/meta-seco-clea-os/classes/clea-os-versioning.bbclass, line 246:

The code lines resulting in this error were:
     0023:
     0024:
     0025:                with open(w_path, 'w') as file:
     0026:
 *** 0027:                file.write(f"CLEA_OS_IMAGE_VERSION = \"{version}\"\n")
     0028:                file.write(f"CLEA_OS_IMAGE_ID = \"{name}\" \n")
     0029:                file.write(f"CLEA_OS_MANIFEST_DATE = \"{m_date}\"\n")
     0030:                file.write(f"CLEA_OS_BUILD_DATE = \"{b_date}\"\n")
     0031:    else:
IndentationError: expected an indented block (clea-os-versioning.bbclass, line 246)
ERROR: Unable to parse /home/yoctouser/workdir/layers/poky/bitbake/lib/bb/utils.py
Traceback (most recent call last):
  File "/home/yoctouser/workdir/layers/poky/bitbake/lib/bb/utils.py", line 319, in better_compile
    code = compile(text2, realfile, mode)
  File "/home/yoctouser/workdir/layers/meta-seco/meta-seco-clea-os/classes/clea-os-versioning.bbclass", line 246
    file.write(f"CLEA_OS_IMAGE_VERSION = \"{version}\"\n")
    ^
IndentationError: expected an indented block

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/yoctouser/workdir/layers/poky/bitbake/lib/bb/utils.py", line 342, in better_compile
    raise e
bb.BBHandledException: expected an indented block (clea-os-versioning.bbclass, line 246)

Signed-off-by: Alessandro Pecugi alessandro.pecugi@seco.com

Merge request reports

Loading