From ee02d58e586045c2c9b29ce9e609efb17d502a49 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Fri, 29 Feb 2008 22:43:58 +0000 Subject: [PATCH] Use -L instead of -l in test for symlink git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1348 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 4 ++++ targets/support/kmerge.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 42ce8b2f..6dc8ce02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 # $Id: $ + 29 Feb 2008; Andrew Gaffney + targets/support/kmerge.sh: + Use -L instead of -l in test for symlink + 29 Feb 2008; Chris Gianelloni targets/stage1/stage1-controller.sh: Remove code for gcc-config/binutils-config since it should be getting done diff --git a/targets/support/kmerge.sh b/targets/support/kmerge.sh index 3f8d1a7c..82820a05 100755 --- a/targets/support/kmerge.sh +++ b/targets/support/kmerge.sh @@ -191,7 +191,7 @@ if [ -n "${clst_KERNCACHE}" ] then mkdir -p /tmp/kerncache/${clst_kname} ROOT=/tmp/kerncache/${clst_kname} PKGDIR=${PKGDIR} run_merge --nodeps -uqkb "${clst_ksource}" || exit 1 - [ -l /usr/src/linux ] && rm -f /usr/src/linux + [ -L /usr/src/linux ] && rm -f /usr/src/linux ln -s /tmp/kerncache/${clst_kname}/usr/src/linux /usr/src/linux else run_merge "${clst_ksource}" || exit 1 -- 2.26.2