Skip to content

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Jan 17, 2025

We now also delete lib/ directory before deleting/downloading new IoT handlers.
In community, this directory does not exist, resulting in Path error while trying to iterdir() on it.
We now look for files recursively inside iot_handlers/, and provide the list to the updated method unlink_file that now accepts multiple arguments to avoid excessively switching between rw/ro filesystem modes.

Forward-Port-Of: #193990

We now also delete `lib/` directory before deleting/downloading new IoT handlers.
In community, this directory does not exist, resulting in Path error while trying to `iterdir()`
on it.
We now look for files recursively inside `iot_handlers/`, and provide the list to the updated
method `unlink_file` that now accepts multiple arguments to avoid excessively switching between rw/ro
filesystem modes.

X-original-commit: 8d2aed9
@robodoo
Copy link
Contributor

robodoo commented Jan 17, 2025

Pull request status dashboard

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Jan 17, 2025
@fw-bot
Copy link
Contributor Author

fw-bot commented Jan 17, 2025

This PR targets saas-18.1 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@C3POdoo C3POdoo added the RD research & development, internal work label Jan 17, 2025
robodoo pushed a commit that referenced this pull request Jan 18, 2025
We now also delete `lib/` directory before deleting/downloading new IoT handlers.
In community, this directory does not exist, resulting in Path error while trying to `iterdir()`
on it.
We now look for files recursively inside `iot_handlers/`, and provide the list to the updated
method `unlink_file` that now accepts multiple arguments to avoid excessively switching between rw/ro
filesystem modes.

closes #194125

X-original-commit: 8d2aed9
Signed-off-by: Yaroslav Soroko (yaso) <yaso@odoo.com>
Signed-off-by: Louis Travaux (lotr) <lotr@odoo.com>
@robodoo robodoo closed this Jan 18, 2025
@fw-bot fw-bot deleted the saas-18.1-17.0-hw_drivers-ensure-lib-before-delete-handlers-lotr-fuCp-fw branch February 1, 2025 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants