[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [gitian-builder/tor-browser-builder-3] Switch from rsync to tar for copy-to-target.
commit ae72871ea2e1c731ee34bba27a47fcce1b79786e
Author: Mike Perry <mikeperry-git@xxxxxxxxxxxxxx>
Date: Tue Jul 15 15:08:29 2014 -0700
Switch from rsync to tar for copy-to-target.
In Ubuntu 14.04, rsync now fails on dangling symlinks.
---
libexec/copy-to-target | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libexec/copy-to-target b/libexec/copy-to-target
index 5843595..82c102a 100755
--- a/libexec/copy-to-target
+++ b/libexec/copy-to-target
@@ -47,7 +47,7 @@ if [ $# = 0 ] ; then
fi
if [ -z "$USE_LXC" ]; then
- rsync -a -L -e "ssh $QUIET_FLAG -oConnectTimeout=30 -oNoHostAuthenticationForLocalhost=yes -i ${GITIAN_BASE:-.}/var/id_dsa -p $VM_SSH_PORT" $1 $TUSER@localhost:$2
+ tar -h -C `dirname "$1"` -cf - `basename "$1"` | ssh $QUIET_FLAG -oConnectTimeout=30 -oNoHostAuthenticationForLocalhost=yes -i ${GITIAN_BASE:-.}/var/id_dsa -p $VM_SSH_PORT $TUSER@localhost -- tar -C "$2" -xf -
else
config-lxc
tar -h -C `dirname "$1"` -cf - `basename "$1"` | sudo lxc-start -n gitian -f var/lxc.config -- sudo -i -u $TUSER tar -C "$2" -xf -
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits