Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 485534
Collapse All | Expand All

(-)/usr/portage/eclass/subversion.eclass (-1 / +2 lines)
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

Return to bug 485534