openFyde / overlay-amd64-openfyde

openFyde supported hardware "x86 PC with Intel HD graphics" build artefacts and pre-built image releases.
https://openfyde.io
BSD 3-Clause "New" or "Revised" License
99 stars 9 forks source link

fix:generate licenses error #4

Closed Aromate closed 1 year ago

Aromate commented 1 year ago

Fix build_image scripts generate licenses error:

>>> Using system located in ROOT tree /mnt/host/source/src/build/images/amd64-openfyde/R102-14695.133.0-d2022_10_14_132025-a1/rootfs/
13:25:38 INFO    : Generating license credits page. Time:
licenses: Unhandled exception:
Traceback (most recent call last):
  File "/mnt/host/source/chromite/licensing/licenses", line 208, in <module>
    DoMain()
  File "/mnt/host/source/chromite/licensing/licenses", line 204, in DoMain
    commandline.ScriptWrapperMain(FindTarget)
  File "/mnt/host/source/chromite/lib/commandline.py", line 1037, in ScriptWrapperMain
    ret = target(argv[1:])
  File "/mnt/host/source/chromite/licensing/licenses.py", line 165, in main
    sysroot, opts.all_packages, opts.gen_licenses, opts.packages)
  File "/mnt/host/source/chromite/licensing/licenses.py", line 116, in LoadPackageInfo
    licensing.ProcessPackageLicenses()
  File "/mnt/host/source/chromite/licensing/licenses_lib.py", line 1194, in ProcessPackageLicenses
    self._LoadLicenseDump(pkg)
  File "/mnt/host/source/chromite/licensing/licenses_lib.py", line 1146, in _LoadLicenseDump
    for key, value in yaml_dump:
TypeError: 'NoneType' object is not iterable
Damenly commented 1 year ago

The issue was caused by the reporter's environment according to our internal communication. So close it.