import-debian-package: stop using a PosixPath object as context manager
All threads resolved!
All threads resolved!
This is no longer supported since Python 3.13 and leads to the following error:
Traceback (most recent call last):
File "/builds/pkg/apertis-dev-tools/tests/import-debian-package/../../tools/import-debian-package", line 681, in <module>
main(sys.argv)
~~~~^^^^^^^^^^
File "/builds/pkg/apertis-dev-tools/tests/import-debian-package/../../tools/import-debian-package", line 666, in main
do_import(args)
~~~~~~~~~^^^^^^
File "/builds/pkg/apertis-dev-tools/tests/import-debian-package/../../tools/import-debian-package", line 396, in do_import
with ensure_dir_or_none(args.cache_dir) or TemporaryDirectory() as downloaddir:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'PosixPath' object does not support the context manager protocol
Signed-off-by: Dylan Aïssi dylan.aissi@collabora.com
Edited by Dylan Aïssi
Merge request reports
Activity
Filter activity
assigned to @daissi
added 1 commit
- f6e82b6b - Refresh the automatically detected licensing information
requested review from @wlozano
- Resolved by Dylan Aïssi
With this change, the pipeline passes in a v2026dev2 docker image as we can see with !108 (closed). Moreover, I successfully tested this change in a Trixie VM.
Please register or sign in to reply