summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-03-18 03:28:07 +0000
committerMike Frysinger <vapier@gentoo.org>2005-03-18 03:28:07 +0000
commit6b42ea70ee2dbe5411f98455fffa1b9009cbb7a7 (patch)
treee0fd4099da3422bb2e3f9d9418ebb455bd5cd880 /sys-devel
parentadd altivec to IUSE and change `use !` syntax to less confusing `! use` (diff)
downloadgentoo-2-6b42ea70ee2dbe5411f98455fffa1b9009cbb7a7.tar.gz
gentoo-2-6b42ea70ee2dbe5411f98455fffa1b9009cbb7a7.tar.bz2
gentoo-2-6b42ea70ee2dbe5411f98455fffa1b9009cbb7a7.zip
touchup symlink creation
(Portage version: 2.0.51.19)
Diffstat (limited to 'sys-devel')
-rwxr-xr-xsys-devel/crossdev/files/crossdev6
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