/[gentoo-x86]/eclass/alternatives.eclass
Gentoo

Diff of /eclass/alternatives.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.13 Revision 1.14
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/alternatives.eclass,v 1.13 2006/03/25 02:37:04 agriffis Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/alternatives.eclass,v 1.14 2007/05/15 15:20:59 ulm Exp $
4 4
5# Author : Alastair Tse <liquidx@gentoo.org> (03 Oct 2003) 5# Author : Alastair Tse <liquidx@gentoo.org> (03 Oct 2003)
6# Short Desc: Creates symlink to the latest version of multiple slotted 6# Short Desc: Creates symlink to the latest version of multiple slotted
7# packages. 7# packages.
8# 8#
102 else 102 else
103 # we need to check for either the target being in relative path form 103 # we need to check for either the target being in relative path form
104 # or absolute path form 104 # or absolute path form
105 if [ ! -f "`dirname ${pref}${SYMLINK}`/`readlink ${pref}${SYMLINK}`" -a \ 105 if [ ! -f "`dirname ${pref}${SYMLINK}`/`readlink ${pref}${SYMLINK}`" -a \
106 ! -f "`readlink ${pref}${SYMLINK}`" ]; then 106 ! -f "`readlink ${pref}${SYMLINK}`" ]; then
107 ewarn "${pref}${SYMLINK} is a dead symlink." 107 ewarn "Removing dead symlink ${pref}${SYMLINK}"
108 rm -f ${pref}${SYMLINK}
108 fi 109 fi
109 fi 110 fi
110} 111}
111 112
112alternatives_pkg_postinst() { 113alternatives_pkg_postinst() {

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20