aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-11 10:04:44 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-11 10:04:44 +0000
commit2cb1346f915860d6da0695207dc559ad601462a6 (patch)
treec197a753ff1f4750617eb213a0110a004c0546c4
parent4e0cbc9c0ea7f51eba4a13ad2eaa5a52699b4941 (diff)
downloadcpt-2cb1346f915860d6da0695207dc559ad601462a6.tar.gz
kiss: more helpful message
FossilOrigin-Name: 89abdb41e95f098453ca7c85107f10e40cdfcc9f351cfc9f4a05e4f94636def6
-rwxr-xr-xkiss10
1 files changed, 8 insertions, 2 deletions
diff --git a/kiss b/kiss
index f5fea06..044966a 100755
--- a/kiss
+++ b/kiss
@@ -769,8 +769,14 @@ pkg_conflicts() {
# Move the conflicting file to the choices directory
# and name it according to the format above.
mv -f "$tar_dir/$p_name/$con" \
- "$tar_dir/$p_name/$cho_dir/$p_name$con_name" 2>/dev/null ||
- die "File must be in ${con%/*} and not a symlink to it"
+ "$tar_dir/$p_name/$cho_dir/$p_name$con_name" 2>/dev/null || {
+ log "File must be in ${con%/*} and not a symlink to it"
+ log "This usually occurs when a binary is installed to"
+ log "/sbin instead of /usr/bin (example)"
+ log "Before this package can be used as an alternative,"
+ log "this must be fixed in $p_name. Contact the maintainer"
+ die "by checking 'git log' or by running 'kiss-maintainer'"
+ }
# Rewrite the package's manifest to update its location
# to its new spot (and name) in the choices directory.