diff options
Diffstat (limited to 'sys-devel')
-rwxr-xr-x | sys-devel/crossdev/files/crossdev | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys-devel/crossdev/files/crossdev b/sys-devel/crossdev/files/crossdev index f41b8b9cc519..dbf00294c062 100755 --- a/sys-devel/crossdev/files/crossdev +++ b/sys-devel/crossdev/files/crossdev @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.12 2005/03/16 23:26:34 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.13 2005/03/18 03:28:07 vapier Exp $ source /sbin/functions.sh || exit 1 die() { @@ -244,7 +244,9 @@ set_use() { } set_links() { local cat=$1 pkg=$2 - ln -sf "${PORTDIR}"/${cat}/${pkg} "${PORTDIR_OVERLAY}"/cross-${CTARGET}/${pkg} + [[ -e ${PORTDIR_OVERLAY}/cross-${CTARGET}/${pkg} ]] \ + && rm -f "${PORTDIR_OVERLAY}"/cross-${CTARGET}/${pkg} + ln -s "${PORTDIR}"/${cat}/${pkg} "${PORTDIR_OVERLAY}"/cross-${CTARGET}/${pkg} } set_portage() { local cat=$1 pkg=$2 ver=$3 |