Status for each repo metadata update

This commit is contained in:
Jason A. Donenfeld 2015-08-20 03:45:22 +02:00
parent 573f2ba6c5
commit a456734297

View File

@ -9,17 +9,16 @@ source /etc/portage/util-functions.sh
repository_list=( $(portageq get_repos /) )
# Number of jobs for egencache, default is number or processors.
egencache_jobnum="$(nproc)"
parallel_jobs="$(nproc)"
ebegin "Fetching pre-generated metadata cache for gentoo repository"
rsync -aq rsync://rsync.gentoo.org/gentoo-portage/metadata/md5-cache/ "${PORTDIR}"/metadata/md5-cache/
eend $?
einfo "Updating metadata cache for repositories:"
for _repo in ${repository_list[@]} ; do
einfo " ${_repo}"
egencache --jobs=${egencache_jobnum} --repo=${_repo} --update --update-use-local-desc
for repo in "${repository_list[@]}"; do
ebegin "Updating metadata cache for ${repo} repository"
egencache --jobs="${parallel_jobs}" --repo="${repo}" --update --update-use-local-desc
eend $?
done
eend $?