Overriding package files script doesn't work for me

I have an issue with overriding package files as per Redirecting...

apply_patches.py causes the entire build process to finish with “success” even though no files are built if .patching-done file is present. That is, if I clean intermediate files, they won’t be rebuilt.

This is caused by the following lines in the script:

# skip patch process if we did it before
if isfile(join(FRAMEWORK_DIR, ".patching-done")):
    env.Exit(0)

Can anyone confirm this?

Also, verbose build doesn’t show anything neither. The build process just stops with “success”. No indication that it’s stopped early because of env.Exit(0) call.

Created an issue: Overriding package files script doesn't work for me · Issue #91 · platformio/platformio-docs · GitHub

The docs have been fixed.

1 Like