Skip to content
Snippets Groups Projects
Commit 6d402b27 authored by Natanael Copa's avatar Natanael Copa
Browse files

abuild: support for conflicts in makedepends

prefix a makedepends with ! and its treated as a conflict. for example:

makedepends="zlib-dev !gettext"
parent 3d2c54f6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment