]> git.wh0rd.org Git - home.git/commitdiff
fix logging when using direct rsync
authorMike Frysinger <vapier@gentoo.org>
Mon, 28 Jan 2013 20:57:52 +0000 (15:57 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 28 Jan 2013 20:57:52 +0000 (15:57 -0500)
.bin/gentoo-sync

index 59f923ca0febc0d74aa42d7a8f114a294164c142..cbe144a79c2e92a8ce77943d3972f2c689c6126e 100755 (executable)
@@ -27,10 +27,11 @@ if ${GS_RSYNC} ; then
                        [[ -e ${f} ]] && . ${f} && break
                done
        done
+       > "${up_log}"
        : ${PORTAGE_RSYNC_OPTS:=-azO --delete --exclude=/distfiles --exclude=/local --exclude=/packages}
        : ${SYNC:=rsync://rsync.gentoo.org/gentoo-portage}
        : ${PORTDIR:=/usr/portage}
-       exec rsync ${PORTAGE_RSYNC_OPTS} ${PORTAGE_RSYNC_EXTRA_OPTS} ${SYNC}/ ${PORTDIR}/
+       exec rsync ${PORTAGE_RSYNC_OPTS} ${PORTAGE_RSYNC_EXTRA_OPTS} ${SYNC}/ ${PORTDIR}/ >& "${sync_log}"
 fi
 
 emerge --sync -q