diff options
author | Ulrich Müller <ulm@gentoo.org> | 2007-05-15 15:20:59 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2007-05-15 15:20:59 +0000 |
commit | ee18f7d5b89e95e183284784c853fa80b88a25cd (patch) | |
tree | aefa3ca8f04daafaf786f8822dea31ead42935f5 /eclass/alternatives.eclass | |
parent | Stable for HPPA (bug #165289). (diff) | |
download | gentoo-2-ee18f7d5b89e95e183284784c853fa80b88a25cd.tar.gz gentoo-2-ee18f7d5b89e95e183284784c853fa80b88a25cd.tar.bz2 gentoo-2-ee18f7d5b89e95e183284784c853fa80b88a25cd.zip |
Fix alternatives.eclass to remove dead symlinks.
Diffstat (limited to 'eclass/alternatives.eclass')
-rw-r--r-- | eclass/alternatives.eclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/alternatives.eclass b/eclass/alternatives.eclass index a5da97d05075..36d7a1a98397 100644 --- a/eclass/alternatives.eclass +++ b/eclass/alternatives.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/alternatives.eclass,v 1.13 2006/03/25 02:37:04 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/alternatives.eclass,v 1.14 2007/05/15 15:20:59 ulm Exp $ # Author : Alastair Tse <liquidx@gentoo.org> (03 Oct 2003) # Short Desc: Creates symlink to the latest version of multiple slotted @@ -104,7 +104,8 @@ alternatives_makesym() { # or absolute path form if [ ! -f "`dirname ${pref}${SYMLINK}`/`readlink ${pref}${SYMLINK}`" -a \ ! -f "`readlink ${pref}${SYMLINK}`" ]; then - ewarn "${pref}${SYMLINK} is a dead symlink." + ewarn "Removing dead symlink ${pref}${SYMLINK}" + rm -f ${pref}${SYMLINK} fi fi } |