flatpak-external-data-checker icon indicating copy to clipboard operation
flatpak-external-data-checker copied to clipboard

f-e-d-c crashes on updating AppStream

Open JakobDev opened this issue 2 years ago • 3 comments

f-e-d-c currently crashes on updating the 6.4 branch of com.riverbankcomputing.PyQt.BaseApp.

INFO    src.manifest: Updating /github/workspace/pyqt/../pyqt-builder/pyqt-builder.json
INFO    src.manifest: Updating /github/workspace/pyqt/../pyqt-sip/pyqt-sip.json
INFO    src.manifest: Updating /github/workspace/pyqt/pyqt.json
INFO    src.manifest: Preparing to update appdata /github/workspace/com.riverbankcomputing.PyQt.BaseApp.metainfo.xml
Traceback (most recent call last):
  File "/app/flatpak-external-data-checker", line 30, in <module>
    main()
  File "/app/src/main.py", line 457, in main
    outdated_num, errors_num, updated = asyncio.run(run_with_args(args))
  File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/app/src/main.py", line 425, in run_with_args
    changes = manifest_checker.update_manifests()
  File "/app/src/manifest.py", line 546, in update_manifests
    self._update_appdata()
  File "/app/src/manifest.py", line 492, in _update_appdata
    assert selected_data is not None
AssertionError

The full log can be found in the Action.

JakobDev avatar Jan 30 '23 09:01 JakobDev

I guess this happens because the last module (polish) doesn't have any external sources, thus f-e-d-c can't associate its appdata with any version.

gasinvein avatar Feb 14 '23 13:02 gasinvein

I will try to add is-main-source to the correct module to fix this. But I think f-e-d-c should show a correct error message with a hint to is-main-source in such a case.

JakobDev avatar Feb 14 '23 14:02 JakobDev

I can confirm that this has fixed the Issue, so f-e-d-c just needs to implement a proper error message

JakobDev avatar Feb 14 '23 14:02 JakobDev