emerge-webrsync: PORTAGE_RSYNC_OPTS, bug #364105
authorJan Pobrislo <ccx@volny.cz>
Wed, 15 Aug 2012 03:03:23 +0000 (20:03 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 15 Aug 2012 03:03:23 +0000 (20:03 -0700)
bin/emerge-webrsync

index 80d62947fd0b86896888b2299fb62e51c6aaa68e..5644abfa4e2ba32fbf17491759fd3b8f60605f6b 100755 (executable)
@@ -41,7 +41,8 @@ else
 fi
 eval $("${portageq}" envvar -v DISTDIR FEATURES FETCHCOMMAND GENTOO_MIRRORS \
        PORTAGE_BIN_PATH PORTAGE_GPG_DIR \
-       PORTAGE_NICENESS PORTAGE_RSYNC_EXTRA_OPTS PORTAGE_TMPDIR PORTDIR \
+       PORTAGE_NICENESS PORTAGE_RSYNC_EXTRA_OPTS \
+       PORTAGE_RSYNC_OPTS PORTAGE_TMPDIR PORTDIR \
        SYNC USERLAND http_proxy ftp_proxy)
 export http_proxy ftp_proxy
 
@@ -220,9 +221,7 @@ sync_local() {
                chown ${ownership} portage > /dev/null 2>&1 && \
                        chown -R ${ownership} portage
                cd portage
-               rsync -av --progress --stats --delete --delete-after \
-                       --exclude='/distfiles' --exclude='/packages' \
-                       --exclude='/local' ${PORTAGE_RSYNC_EXTRA_OPTS} . "${PORTDIR%%/}"
+               rsync ${PORTAGE_RSYNC_OPTS} ${PORTAGE_RSYNC_EXTRA_OPTS} . "${PORTDIR%%/}"
                cd ..
 
                vecho "Cleaning up ..."