Don't uninstall depends when build --strict fails
Alpine's abuild
will uninstall all dependencies by default, when a
package build fails.
Leaving this configuration unchanged leads to unexpected behavior with
pmbootstrap: when executing pmbootstrap build --strict
and pressing
^C
during the build, pmbootstrap will stop, but an apk
process
will be started in the background to remove the dependency packages.
Running pmbootstrap shutdown
at this time will not work, because the
apk
process is still running.
With this commit, dependencies don't get cleaned up from the chroots.
How to test:
- Build a big package
$ pmbootstrap build linux-postmarketos-stable --strict --force
- Have
pmbootstrap log
open - During the build, hit
^C
- With this MR, it will stop immediatelly. Without it, it will display
the output of
apk
uninstalling all the packages in the log.
Edited by Administrator