Add support for RSYNC_EXTRA_OPTS to webrsync
authorMarius Mauch <genone@gentoo.org>
Sat, 17 Feb 2007 03:53:30 +0000 (03:53 -0000)
committerMarius Mauch <genone@gentoo.org>
Sat, 17 Feb 2007 03:53:30 +0000 (03:53 -0000)
svn path=/main/trunk/; revision=5973

bin/emerge-webrsync

index b1362b379b1f08ddb9272514e5feb401b6b8dbb5..24fc377c2618e4118d81476e24def54ca96651ca 100755 (executable)
@@ -7,7 +7,7 @@
 
 eval $(/usr/lib/portage/bin/portageq envvar -v FEATURES FETCHCOMMAND \
        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
@@ -70,7 +70,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