#!/usr/bin/env bash
for x in `find /usr/portage/ -iname *.ebuild`
do
ebuild ${x} fetch > /tmp/portage-download.log 2>&1
if [ $? -ne 0 ]
then 
	echo '!!!' couldn\'t download all files for ${x} 
	cat /tmp/portage-download.log
	echo
	echo
	echo
	echo
	echo
fi
done
