Disable tarsync when using lzma compression since it doesn't seem to be
authorZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 10:03:28 +0000 (10:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 10:03:28 +0000 (10:03 -0000)
supported.

svn path=/main/trunk/; revision=9537

bin/emerge-webrsync

index ee9cb7d45af0bc97a641eb5a55da0ca8d0ce19e3..3a58b2b168e48f0f095f6a78feca49dae02858a6 100755 (executable)
@@ -173,7 +173,8 @@ sync_local() {
 
        vecho "Syncing local tree ..."
 
-       if type -P tarsync &> /dev/null; then
+       # tarsync-0.2.1 doesn't seem to support lzma compression.
+       if [ "${file##*.}" != "lzma" ] && type -P tarsync &> /dev/null; then
                if ! tarsync $(vvecho -v) -s 1 -o portage -g portage -e /distfiles -e /packages -e /local "${file}" "${PORTDIR}"; then
                        eecho "tarsync failed; tarball is corrupt? (${file})"
                        return 1