mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-11 06:37:31 +00:00
abuild: set -e fix for update_config_{sub,guess}
This commit is contained in:
parent
1ddc910eb3
commit
ecc1f509c6
16
abuild.in
16
abuild.in
@ -532,8 +532,7 @@ mkusers() {
|
||||
|
||||
# helper to update config.sub to a recent version
|
||||
update_config_sub() {
|
||||
local changed=false
|
||||
find . -name config.sub | while read f; do
|
||||
find . -name config.sub | (local changed=false; while read f; do
|
||||
if ! ./$f armv6-alpine-linux-muslgnueabihf 2>/dev/null; then
|
||||
msg "Updating $f"
|
||||
cp "$datadir"/${f##*/} "$f" || return 1
|
||||
@ -541,16 +540,12 @@ update_config_sub() {
|
||||
else
|
||||
msg "No update needed for $f"
|
||||
fi
|
||||
# pipe subshell will return status of last command
|
||||
$changed
|
||||
done
|
||||
return $?
|
||||
done; $changed)
|
||||
}
|
||||
|
||||
# helper to update config.guess to a recent version
|
||||
update_config_guess() {
|
||||
local changed=false
|
||||
find . -name config.guess | while read f; do
|
||||
find . -name config.guess | (local changed=false; while read f; do
|
||||
if grep -q aarch64 "$f" && grep -q ppc64le "$f"; then
|
||||
msg "No update needed for $f"
|
||||
else
|
||||
@ -558,10 +553,7 @@ update_config_guess() {
|
||||
cp "$datadir"/${f##*/} "$f" || return 1
|
||||
changed=true
|
||||
fi
|
||||
# pipe subshell will return status of last command
|
||||
$changed
|
||||
done
|
||||
return $?
|
||||
done; $changed)
|
||||
}
|
||||
|
||||
runpart() {
|
||||
|
Loading…
Reference in New Issue
Block a user