From 71d65bd86281706c2b80024533508ea3aff00d5c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 23 Feb 2008 01:20:48 +0000 Subject: [PATCH] only try to fetch compression schemes which the host supports svn path=/main/trunk/; revision=9372 --- bin/emerge-webrsync | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync index 6b9aa96be..ee9cb7d45 100755 --- a/bin/emerge-webrsync +++ b/bin/emerge-webrsync @@ -219,11 +219,20 @@ do_snapshot() { local have_files=0 local mirror + local compressions="" + type lzcat > /dev/null && compressions="${compressions} lzma" + type bzcat > /dev/null && compressions="${compressions} bz2" + type zcat > /dev/null && compressions="${compressions} gz" + if [[ -z ${compressions} ]] ; then + eecho "unable to locate any decompressors (lzcat or bzcat or zcat)" + exit 1 + fi + for mirror in ${GENTOO_MIRRORS} ; do vecho "Trying to retrieve ${date} snapshot from ${mirror} ..." - for compression in lzma bz2 gz ; do + for compression in ${compressions} ; do local file="portage-${date}.tar.${compression}" local digest="${file}.md5sum" local signature="${file}.gpgsig" -- 2.26.2