From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6C062138010 for ; Fri, 2 Nov 2012 01:13:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C67CB21C025; Fri, 2 Nov 2012 01:12:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 333D621C056 for ; Fri, 2 Nov 2012 01:12:46 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7127B33D7E7 for ; Fri, 2 Nov 2012 01:12:45 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id E9CF2E543C for ; Fri, 2 Nov 2012 01:12:43 +0000 (UTC) From: "Richard Farina" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Richard Farina" Message-ID: <1351817816.9ca68bf59dfa62b160ba29a6ac3ea5270744d48a.zerochaos@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: targets/support/ X-VCS-Repository: proj/catalyst X-VCS-Files: targets/support/functions.sh X-VCS-Directories: targets/support/ X-VCS-Committer: zerochaos X-VCS-Committer-Name: Richard Farina X-VCS-Revision: 9ca68bf59dfa62b160ba29a6ac3ea5270744d48a X-VCS-Branch: master Date: Fri, 2 Nov 2012 01:12:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8fd5f5b5-fe16-4ec1-b718-58914319c3c4 X-Archives-Hash: 550eb6b4468b8f3ca4d05f19301094f5 commit: 9ca68bf59dfa62b160ba29a6ac3ea5270744d48a Author: Rick Farina (Zero_Chaos) gentoo org> AuthorDate: Fri Nov 2 00:56:56 2012 +0000 Commit: Richard Farina gentoo org> CommitDate: Fri Nov 2 00:56:56 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=9ca68bf5 RE-Apply Mike's suggested patch to fix the setting of +x on copy_to_chroot - bug 434252. --- targets/support/functions.sh | 21 +++++---------------- 1 files changed, 5 insertions(+), 16 deletions(-) diff --git a/targets/support/functions.sh b/targets/support/functions.sh index cb70bdd..a0eaae2 100644 --- a/targets/support/functions.sh +++ b/targets/support/functions.sh @@ -1,19 +1,8 @@ -copy_to_chroot(){ - local file_name=$(basename ${1}) - local dest_dir=${clst_chroot_path}${2} - if [ "${2}" != "" ] - then - echo "copying ${file_name} to ${dest_dir}" - mkdir -p ${dest_dir} - cp -pPR ${1} ${dest_dir} - [ "${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 - cp -pPR ${1} ${clst_chroot_path}/tmp - chmod 755 ${clst_chroot_path}/tmp/${file_name} - fi +copy_to_chroot() { + local src_file=$1 + local dest_dir=${clst_chroot_path}${2:-/tmp} + echo "copying ${src_file##*/} to ${dest_dir}" + cp -pPR "${src_file}" "${dest_dir}"/ } delete_from_chroot(){