diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-30 14:59:07 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-30 14:59:07 +0000 |
commit | c30c346362223658980275d54d5b7911a3a7486c (patch) | |
tree | dba567119db93a0168d727aa665a3c2c423570e6 /abuild.in | |
parent | 991652c96c0af2f7faad2cc7f1fa751855c2c4a5 (diff) | |
download | abuild-c30c346362223658980275d54d5b7911a3a7486c.tar.gz abuild-c30c346362223658980275d54d5b7911a3a7486c.tar.bz2 abuild-c30c346362223658980275d54d5b7911a3a7486c.tar.xz abuild-c30c346362223658980275d54d5b7911a3a7486c.zip |
abuild: detect and report conflicting dependencies properly
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -841,15 +841,16 @@ builddeps() { # find which deps are missing for i in $deps; do if [ "${i#\!}" != "$i" ]; then - list_has ${i#\!} $installed_deps \ + $APK info -q -e "${i#\!}" \ && conflicts="$conflicts ${i#\!}" elif ! deplist_has $i $installed_deps || [ -n "$upgrade" ]; then missing="$missing $i" fi done - + if [ -n "$conflicts" ]; then - die "Conflicting package(s) installed:$conflics" + error "Conflicting package(s) installed:$conflicts" + return 1 fi if [ -z "$install_deps" ] && [ -z "$recursive" ]; then |