Bug #332799 - Don't download lzma snapshots if tarsync is installed.
authorZac Medico <zmedico@gentoo.org>
Sun, 15 Aug 2010 05:18:17 +0000 (22:18 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 15 Aug 2010 05:18:17 +0000 (22:18 -0700)
bin/emerge-webrsync

index 6964168b6b8d000ec44177e10baacd8c9a6c02fd..e3ec5f6392c7f048fdfd1f378d645694e89b8294 100755 (executable)
@@ -226,12 +226,9 @@ do_snapshot() {
        local mirror
 
        local compressions=""
-       # lzma is not supported in <=app-arch/tarsync-0.2.1, so use
-       # bz2 format if we have an old version of tarsync.
-       if type -P tarsync > /dev/null && \
-               portageq has_version / '<=app-arch/tarsync-0.2.1' ; then
-               true
-       else
+       # lzma is not supported in app-arch/tarsync, so use
+       # bz2 format if we have tarsync.
+       if ! type -P tarsync > /dev/null ; then
                type -P lzcat > /dev/null && compressions="${compressions} lzma"
        fi
        type -P bzcat > /dev/null && compressions="${compressions} bz2"