summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/emerge-webrsync11
1 files changed, 10 insertions, 1 deletions
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"