Let's not try to chmod a dangling symlink.
authorChris Gianelloni <wolf31o2@gentoo.org>
Fri, 25 Apr 2008 23:57:01 +0000 (23:57 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Fri, 25 Apr 2008 23:57:01 +0000 (23:57 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1404 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
targets/support/functions.sh

index e02effe9c717cf0bbeb86ec299fb43c45a0c57e3..125f8d4069c88d5ddcc64d345d8415b8d83ee6b9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
 # $Id: $
 
+  25 Apr 2008; Chris Gianelloni <wolf31o2@gentoo.org>
+  targets/support/functions.sh:
+  Let's not try to chmod a dangling symlink.
+
   25 Apr 2008; Chris Gianelloni <wolf31o2@gentoo.org>
   targets/support/chroot-functions.sh:
   Added emerge --info to debug output.  I don't know why I didn't add it before.
index 7b40afece148102c6bc53647986578af0aa75a7e..6d21af8c0057216011eaa29652156e93d209e3ae 100755 (executable)
@@ -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