Lines 443-451
Link Here
|
443 |
# want the logs to stick around if packages are uninstalled without messing with |
443 |
# want the logs to stick around if packages are uninstalled without messing with |
444 |
# config protection. |
444 |
# config protection. |
445 |
subversion_pkg_preinst() { |
445 |
subversion_pkg_preinst() { |
|
|
446 |
has "${EAPI:-0}" 0 1 2 && ! use prefix && EROOT="${ROOT}" |
446 |
local pkgdate=$(date "+%Y%m%d %H:%M:%S") |
447 |
local pkgdate=$(date "+%Y%m%d %H:%M:%S") |
447 |
if [[ -n ${ESCM_LOGDIR} ]]; then |
448 |
if [[ -n ${ESCM_LOGDIR} ]]; then |
448 |
local dir="${ROOT}/${ESCM_LOGDIR}/${CATEGORY}" |
449 |
local dir="${EROOT}/${ESCM_LOGDIR}/${CATEGORY}" |
449 |
if [[ ! -d ${dir} ]]; then |
450 |
if [[ ! -d ${dir} ]]; then |
450 |
mkdir -p "${dir}" || eerror "Failed to create '${dir}' for logging svn revision" |
451 |
mkdir -p "${dir}" || eerror "Failed to create '${dir}' for logging svn revision" |
451 |
fi |
452 |
fi |