diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-25 08:20:21 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-25 08:20:21 +0000 |
commit | 98fe44cb7361cf3c44ee3ce4c13671040b8b135a (patch) | |
tree | 17723b195c20b112e8f300e47351291ca5b91884 | |
parent | beb15ad8ba6c3932bca8f20e495b3ff7475d349e (diff) | |
download | abuild-98fe44cb7361cf3c44ee3ce4c13671040b8b135a.tar.gz abuild-98fe44cb7361cf3c44ee3ce4c13671040b8b135a.tar.bz2 abuild-98fe44cb7361cf3c44ee3ce4c13671040b8b135a.tar.xz abuild-98fe44cb7361cf3c44ee3ce4c13671040b8b135a.zip |
abuild: also install 'depends' with 'abuild deps'
fixes #2270
-rwxr-xr-x | abuild.in | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1732,10 +1732,15 @@ post_add() { } deps() { - local deps i + local builddeps i + builddeps="$makedepends" + for i in $depends; do + [ "$pkgname" = "${i%%[<>=]*}" ] && continue + subpackages_has ${i%%[<>=]*} || builddeps="$builddeps $i" + done $SUDO_APK add $apk_opt_wait --repository "$abuildrepo" \ --virtual .makedepends-$pkgname \ - $makedepends + $builddeps } undeps (){ |