Gentoo Archives: gentoo-catalyst

From: Brian Dolbec <dolsen@g.o>
To: gentoo-catalyst@l.g.o
Cc: Brian Dolbec <dolsen@g.o>
Subject: [gentoo-catalyst] [PATCH 3/3] Fix a relative path bug
Date: Wed, 18 Dec 2013 01:12:38
Message-Id: 1387329131-25890-4-git-send-email-dolsen@gentoo.org
In Reply to: [gentoo-catalyst] Path addition fixes to prevent multiple slashes in paths. by Brian Dolbec
1 ---
2 targets/support/functions.sh | 4 ++--
3 1 file changed, 2 insertions(+), 2 deletions(-)
4
5 diff --git a/targets/support/functions.sh b/targets/support/functions.sh
6 index 80e371c..3245862 100644
7 --- a/targets/support/functions.sh
8 +++ b/targets/support/functions.sh
9 @@ -20,7 +20,7 @@ exec_in_chroot(){
10 # and executes it.
11 local file_name=$(basename ${1})
12 local subdir=${2}
13 - local destdir=".${subdir}/tmp"
14 + local destdir="${subdir}/tmp"
15
16 echo "Copying ${file_name} to ${destdir}"
17 copy_to_chroot ${1} ${destdir}
18 @@ -33,7 +33,7 @@ exec_in_chroot(){
19 chmod +x ${chroot_path}/${destdir}/${file_name}
20
21 echo "Running ${file_name} in chroot ${chroot_path}"
22 - ${clst_CHROOT} ${chroot_path} ${destdir}/${file_name} || exit 1
23 + ${clst_CHROOT} ${chroot_path} .${destdir}/${file_name} || exit 1
24
25 delete_from_chroot ${destdir}/${file_name}
26 delete_from_chroot ${destdir}/chroot-functions.sh
27 --
28 1.8.3.2

Replies

Subject Author
Re: [gentoo-catalyst] [PATCH 3/3] Fix a relative path bug "W. Trevor King" <wking@×××××××.us>