Feature request: stop building after current package
Add a signal handler to stop after getting done with the current task. Like Ctrl+C, but let it finish this one first.
Why? Because kdesrc-build operations are not transactional, and it's not even a package manager. So, when you are interrupting a long rebuild there's a chance, that you force it to stop right in the middle of copying new files to their destination, or just leave the build directory in an inconsistent state. This is much worse and prone to breakages than a partial upgrade.
My use case is: whenever I see there are already some build failures, I need to interrupt the build process and start investigating logs. I could use --stop-on-failure
, but that's too strict, as sometimes there are flaky packages that I don't really care about as much; but other times there's, like, kio-extras, kwin and messagelib exploding and taking down half of the rest build, which is not reasonable to continue.