From 4b47617b1b8c6e75342a3844b98860c518a05a37 Mon Sep 17 00:00:00 2001 From: NP-Hardass Date: Wed, 5 Apr 2017 20:40:31 -0400 Subject: wine.eselect: Update are_symlinks_valid for new bin symlinks --- wine.eselect | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'wine.eselect') diff --git a/wine.eselect b/wine.eselect index 00097c0..6639789 100644 --- a/wine.eselect +++ b/wine.eselect @@ -114,8 +114,15 @@ are_symlinks_valid() { local file=$(canonicalise ${symlink}) if [[ ! -e "${file}" ]]; then die -q "${symlink} points to nonexistant ${file}" + # Handle bin separately because symlinks don't go to wine_${var} + elif [[ "${var}" == "bin" ]]; then + local path="/usr/bin/${symlink##*/}${tgt#wine}" + if [[ "${file}" != "${path}" ]]; then + write_error_msg "${symlink} points to ${file}" + die -q "which doesn't appear to be the proper link" + fi else - path=wine_${var} + local path=wine_${var} path=${!path} path=$(canonicalise "${path}") if [[ "${file}" != "${path%/}"/* ]]; then -- cgit v1.2.3-65-gdbad