summaryrefslogtreecommitdiff
path: root/src/chroot-tools/libremakepkg
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-13 00:07:15 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-13 00:07:15 -0500
commita7d0da3e7fd7009c28e09f73c32f0a355819f2e6 (patch)
tree2dfc3142f699c0e85fa25741efb72dfe6b110975 /src/chroot-tools/libremakepkg
parente17b270bbfa29160beb34266533f5b2e2120041f (diff)
libremakepkg: fix copy_log
Diffstat (limited to 'src/chroot-tools/libremakepkg')
-rwxr-xr-xsrc/chroot-tools/libremakepkg6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index a146627..3fa2f3d 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -29,7 +29,7 @@
# copy logs if they exist
##
copy_log() {
- find "${chroot_path}/build/" -maxdepth 1 -name "*\.log" -exec cp {} ./ \;
+ find "${copydir}/build/" -maxdepth 1 -name "*\.log" -exec cp {} ./ \;
}
##
@@ -89,6 +89,10 @@ main() {
# Pass all arguments after -- right to makechrootpkg
makechrootpkg_args+=("$@")
+ # not local
+ rootdir="${CHROOTDIR}/${CHROOT}/root"
+ copydir="${CHROOTDIR}/${CHROOT}/${CHROOTCOPY}"
+
if (( EUID )); then
error "This script must be run as root"
exit 1