[tbb-commits] [gitian-builder/tor-browser-builder-3] Switch from rsync to tar for copy-to-target.

mikeperry at torproject.org mikeperry at torproject.org
Tue Jul 15 22:11:29 UTC 2014


commit ae72871ea2e1c731ee34bba27a47fcce1b79786e
Author: Mike Perry <mikeperry-git at torproject.org>
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 at 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 at 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 -



More information about the tbb-commits mailing list