diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-26 09:31:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-26 09:31:51 +0000 |
commit | 6d402b272f8bff60f5c9e7d9e55085bacd21c609 (patch) | |
tree | e9ea249378e9fe6f8e82ebe58c977449e952cd42 /abuild | |
parent | 3d2c54f6d8682a88c1cb38a45d37d4d2ac8817b5 (diff) | |
download | abuild-6d402b272f8bff60f5c9e7d9e55085bacd21c609.tar.gz abuild-6d402b272f8bff60f5c9e7d9e55085bacd21c609.tar.bz2 abuild-6d402b272f8bff60f5c9e7d9e55085bacd21c609.tar.xz abuild-6d402b272f8bff60f5c9e7d9e55085bacd21c609.zip |
abuild: support for conflicts in makedepends
prefix a makedepends with ! and its treated as a conflict. for example:
makedepends="zlib-dev !gettext"
Diffstat (limited to 'abuild')
-rwxr-xr-x | abuild | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -541,7 +541,10 @@ builddeps() { # find which deps are missing for i in $deps; do - if ! apk info -e $i; then + if [ "${i#\!}" != "$i" ]; then + apk info -e ${i#\!} \ + && die "Conflicting package ${i#\!} is installed." + elif ! apk info -e $i; then if [ -z "$install_deps" ] && [ -z "$recursive" ]; then die "Missing dependency $i. Use -r to autoinstall or -R to build" fi |