diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-10-31 15:49:29 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-10-31 15:49:29 +0200 |
commit | e18d6228e7fc1e7601b4c793ef889cfd3e36fc36 (patch) | |
tree | 23b09e2fa290b418faf7793be1cfbf730f571e5b /abuild.in | |
parent | 69fd2290feaf7b8ae3d5cbaa2d1f6dda4915d71d (diff) | |
download | abuild-e18d6228e7fc1e7601b4c793ef889cfd3e36fc36.tar.bz2 abuild-e18d6228e7fc1e7601b4c793ef889cfd3e36fc36.tar.xz |
abuild: properly detect failure of dependency installation
Diffstat (limited to 'abuild.in')
-rw-r--r-- | abuild.in | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1889,7 +1889,8 @@ builddeps() { done $SUDO_APK add --upgrade --repository "$REPODEST/$repo" \ $apk_opt_wait \ - --virtual .makedepends-$pkgname $builddeps + --virtual .makedepends-$pkgname $builddeps \ + || return 1 } # replace the md5sums in the APKBUILD @@ -2034,7 +2035,8 @@ deps() { [ -z "$_quiet" ] && msg "Installing for build:$builddeps" $SUDO_APK add $_quiet $apk_opt_wait --repository "$REPODEST/$repo" \ --virtual .makedepends-$pkgname \ - $builddeps + $builddeps \ + || return 1 if [ -n "$CBUILDROOT" ]; then [ -z "$_quiet" ] && msg "Installing for host:$hostdeps" $SUDO_APK add $_quiet --root "$CBUILDROOT" --repository "$REPODEST/$repo" $apk_opt_wait \ |