2015-10-12 23:20:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
|
|
|
|
source "/etc/paludis/hooks/set_portdir.bash"
|
|
|
|
|
|
|
|
if [[ ${TARGET} == gentoo ]] ; then
|
2016-01-18 12:31:35 +00:00
|
|
|
# Number of jobs for egencache, default is number of processors.
|
2015-10-12 23:20:04 +00:00
|
|
|
egencache_jobnum="$(nproc)"
|
|
|
|
|
|
|
|
ebegin "Updating metadata cache for repository ${TARGET}"
|
|
|
|
egencache --jobs=${egencache_jobnum} --repo=${TARGET} --update --update-use-local-desc
|
|
|
|
eend $?
|
|
|
|
fi
|