From: Chris Gianelloni Date: Fri, 25 Apr 2008 23:57:01 +0000 (+0000) Subject: Let's not try to chmod a dangling symlink. X-Git-Tag: CATALYST_2_0_6_916~90 X-Git-Url: http://git.tremily.us/?p=catalyst.git;a=commitdiff_plain;h=b7740fcd68d057211718f93bfc12f20896e75967 Let's not try to chmod a dangling symlink. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1404 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/ChangeLog b/ChangeLog index e02effe9..125f8d40 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 # $Id: $ + 25 Apr 2008; Chris Gianelloni + targets/support/functions.sh: + Let's not try to chmod a dangling symlink. + 25 Apr 2008; Chris Gianelloni targets/support/chroot-functions.sh: Added emerge --info to debug output. I don't know why I didn't add it before. diff --git a/targets/support/functions.sh b/targets/support/functions.sh index 7b40afec..6d21af8c 100755 --- a/targets/support/functions.sh +++ b/targets/support/functions.sh @@ -6,7 +6,8 @@ copy_to_chroot(){ echo "copying ${file_name} to ${dest_dir}" mkdir -p ${dest_dir} cp -pPR ${1} ${dest_dir} - chmod 755 ${dest_dir}/${file_name} + [ "${file_name}" != "make.profile" ] && \ + chmod 755 ${dest_dir}/${file_name} else echo "copying ${file_name} to ${clst_chroot_path}/tmp" mkdir -p ${chroot_path}/tmp