diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-08-05 02:39:58 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-08-05 02:39:58 +0000 |
commit | 605a2e2126ccbe8659586b48dc22cac78cf93463 (patch) | |
tree | 0eec52f28690e50d027f1b95a76dce5e1963fda9 /eclass | |
parent | fix symlink bug (diff) | |
download | gentoo-2-605a2e2126ccbe8659586b48dc22cac78cf93463.tar.gz gentoo-2-605a2e2126ccbe8659586b48dc22cac78cf93463.tar.bz2 gentoo-2-605a2e2126ccbe8659586b48dc22cac78cf93463.zip |
make sure we punt symlinks first #101206
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/gnuconfig.eclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/gnuconfig.eclass b/eclass/gnuconfig.eclass index fe33953ca550..42d38a7c9857 100644 --- a/eclass/gnuconfig.eclass +++ b/eclass/gnuconfig.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/gnuconfig.eclass,v 1.29 2005/07/06 20:23:20 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gnuconfig.eclass,v 1.30 2005/08/05 02:39:58 vapier Exp $ # # Author: Will Woods <wwoods@gentoo.org> # @@ -65,6 +65,7 @@ gnuconfig_do_update() { targetlist=$(find "${startdir}" -name "${file}") if [[ -n ${targetlist} ]] ; then for target in ${targetlist} ; do + [[ -L ${target} ]] && rm -f "${target}" einfo " Updating ${target/$startdir\//}" cp -f "${configsubs_dir}/${file}" "${target}" eend $? |