14 lines
401 B
Bash
14 lines
401 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
|
||
|
source "/etc/paludis/hooks/set_portdir.bash"
|
||
|
|
||
|
if [[ ${TARGET} == gentoo ]] ; then
|
||
|
# Number of jobs for egencache, default is number or processors.
|
||
|
egencache_jobnum="$(nproc)"
|
||
|
|
||
|
ebegin "Updating metadata cache for repository ${TARGET}"
|
||
|
egencache --jobs=${egencache_jobnum} --repo=${TARGET} --update --update-use-local-desc
|
||
|
eend $?
|
||
|
fi
|