build: propagate errors when generating apk indexes
authorMatt Merhar <mattmerhar@protonmail.com>
Wed, 11 Feb 2026 19:33:15 +0000 (14:33 -0500)
committerRobert Marko <robimarko@gmail.com>
Fri, 13 Feb 2026 20:17:21 +0000 (21:17 +0100)
commitfcb07b00ec22b90fc0cd790701982018ee345366
tree3cf14f549f574f1308652028552394fe9e89a511
parentdfd15dc725a273cae3484fb9d487dc93ae5b6286
build: propagate errors when generating apk indexes

The build would continue even if the some of the intermediate commands
failed, as long as the last command in the final iteration of the loop
was successful.

Add 'set -e' to the subshell so that we immediately exit. Previously,
only the exit status of the final make-index-json.py mattered.

Fixes: https://github.com/openwrt/openwrt/issues/21981
Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/21993
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/Makefile