Add support for RSYNC_EXTRA_OPTS to webrsync (trunk r5973)
authorZac Medico <zmedico@gentoo.org>
Fri, 22 Jun 2007 01:20:42 +0000 (01:20 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 22 Jun 2007 01:20:42 +0000 (01:20 -0000)
svn path=/main/branches/2.1.2/; revision=6927

bin/emerge-webrsync

index 369f473be592374b650953560d0832c0fd50d0bc..d8c025732d327405d26dc6189d9ecb94a5c124f3 100755 (executable)
@@ -9,7 +9,7 @@ type portageq > /dev/null || exit $?
 eval $(portageq envvar -v FEATURES FETCHCOMMAND GENTOO_MIRRORS \
        PORTAGE_BIN_PATH PORTAGE_INST_UID PORTAGE_INST_GID PORTAGE_NICENESS \
        GENTOO_MIRRORS PORTAGE_INST_UID PORTAGE_INST_GID PORTAGE_NICENESS \
-       PORTAGE_TMPDIR PORTDIR)
+       PORTAGE_TMPDIR PORTDIR PORTAGE_RSYNC_EXTRA_OPTS)
 DISTDIR="${PORTAGE_TMPDIR}/emerge-webrsync"
 
 # If PORTAGE_NICENESS is overriden via the env then it will
@@ -72,7 +72,7 @@ sync_local() {
                cd portage
                rsync -av --progress --stats --delete --delete-after \
                --exclude='/distfiles' --exclude='/packages' \
-               --exclude='/local' . ${PORTDIR%%/}
+               --exclude='/local' ${PORTAGE_RSYNC_EXTRA_OPTS} . ${PORTDIR%%/}
                cd ..
                echo "cleaning up"
                rm -rf portage