saving uncommitted changes in /etc prior to emerge run

This commit is contained in:
2015-08-22 02:31:01 +02:00
committed by Hans Wurst
parent b4eaf2e93f
commit a3271aff2e
12 changed files with 85 additions and 81 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
source "/etc/paludis/hooks/set_portdir.bash"
if [[ ${TARGET} != gentoo && $(${CAVE} print-repository-metadata --raw-name format --format "%v" ${TARGET}) == e ]] ; then
# Number of jobs for egencache, default is number or processors.
egencache_jobnum="$(nproc)"
ebegin "Cache update for repository ${TARGET}"
egencache --jobs=${egencache_jobnum} --repo=${TARGET} --update --update-use-local-desc
eend $?
fi