mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-04 09:00:41 +00:00
- Fixes termux#24116 - adds a new script to `scripts/bin`, `build-package-dry-run-simulation.sh`, which is used to test whether the entire `build-package.sh` command would have both proceeded beyond this point,040710f492/scripts/build/termux_step_start_build.sh (L13-L16)
- and also proceeded beyond this point,040710f492/scripts/build/termux_step_start_build.sh (L42-L47)
- or if it would have skipped all packages in the list of packages to build without building anything. - if the build would have continued or an unknown situation occurs, zero is returned, but if all packages in the list of packages to build would have been skipped, 85 (`C_EX__NOOP`) is returned. - if an error handled by this script, such as a syntax error in the `-a` argument or the package name argument list occurs, a similar error message to what `build-package.sh` would have printed is shown, and 1 is returned. - in `run-docker.sh`, the command passed to `run-docker.sh` is run in `build-package-dry-run-simulation.sh` before doing anything else only if the command passed has `build-package.sh` in its first argument, and only continues if a zero value is returned by `build-package-dry-run-simulation.sh`, which indicates either that at least one package will be built, or that the passed command is empty or not `build-package.sh`.