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"