public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] [patch]  Fix a relative path bug
@ 2013-02-27  9:29 Brian Dolbec
  0 siblings, 0 replies; only message in thread
From: Brian Dolbec @ 2013-02-27  9:29 UTC (permalink / raw
  To: gentoo-catalyst

Another bug in master that should be fixed.  This one should apply
cleanly to master.

=================================================================

diff --git a/targets/support/functions.sh b/targets/support/functions.sh
index 6bfa3a2..79fe08a 100755
@@ -1,5 +1,6 @@
 copy_to_chroot() {
 	local src_file=$1
+	# needed the above tmp_2 in order to trim the leading / next if it has
one
 	local dest_dir=${clst_chroot_path}${2:-/tmp}
 	mkdir -p ${dest_dir}
 	echo "--- Copying ${src_file##*/} to ${dest_dir}"
@@ -20,7 +21,7 @@ exec_in_chroot(){
 # and executes it.
 	local file_name=$(basename ${1})
 	local subdir=${2}
-	local destdir=".${subdir}/tmp"
+	local destdir="${subdir}/tmp"
 
 	echo "--- Copying ${file_name} to ${destdir}"
 	copy_to_chroot ${1} ${destdir}
@@ -33,7 +34,7 @@ exec_in_chroot(){
 	chmod +x ${chroot_path}/${destdir}/${file_name}
 
 	echo "--- Running ${file_name} in chroot ${chroot_path}"
-	${clst_CHROOT} ${chroot_path} ${destdir}/${file_name} || exit 1
+	${clst_CHROOT} ${chroot_path} .${destdir}/${file_name} || exit 1
 
 	delete_from_chroot ${destdir}/${file_name}
 	delete_from_chroot ${destdir}/chroot-functions.sh



-- 
Brian Dolbec <dolsen@gentoo.org>



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-27  9:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-27  9:29 [gentoo-catalyst] [patch] Fix a relative path bug Brian Dolbec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox