abuild: properly detect failure of dependency installation
This commit is contained in:
parent
69fd2290fe
commit
e18d6228e7
|
@ -1889,7 +1889,8 @@ builddeps() {
|
||||||
done
|
done
|
||||||
$SUDO_APK add --upgrade --repository "$REPODEST/$repo" \
|
$SUDO_APK add --upgrade --repository "$REPODEST/$repo" \
|
||||||
$apk_opt_wait \
|
$apk_opt_wait \
|
||||||
--virtual .makedepends-$pkgname $builddeps
|
--virtual .makedepends-$pkgname $builddeps \
|
||||||
|
|| return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# replace the md5sums in the APKBUILD
|
# replace the md5sums in the APKBUILD
|
||||||
|
@ -2034,7 +2035,8 @@ deps() {
|
||||||
[ -z "$_quiet" ] && msg "Installing for build:$builddeps"
|
[ -z "$_quiet" ] && msg "Installing for build:$builddeps"
|
||||||
$SUDO_APK add $_quiet $apk_opt_wait --repository "$REPODEST/$repo" \
|
$SUDO_APK add $_quiet $apk_opt_wait --repository "$REPODEST/$repo" \
|
||||||
--virtual .makedepends-$pkgname \
|
--virtual .makedepends-$pkgname \
|
||||||
$builddeps
|
$builddeps \
|
||||||
|
|| return 1
|
||||||
if [ -n "$CBUILDROOT" ]; then
|
if [ -n "$CBUILDROOT" ]; then
|
||||||
[ -z "$_quiet" ] && msg "Installing for host:$hostdeps"
|
[ -z "$_quiet" ] && msg "Installing for host:$hostdeps"
|
||||||
$SUDO_APK add $_quiet --root "$CBUILDROOT" --repository "$REPODEST/$repo" $apk_opt_wait \
|
$SUDO_APK add $_quiet --root "$CBUILDROOT" --repository "$REPODEST/$repo" $apk_opt_wait \
|
||||||
|
|
Loading…
Reference in New Issue