/[gentoo-x86]/eclass/subversion.eclass
Gentoo

Diff of /eclass/subversion.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.85 Revision 1.86
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.85 2013/07/27 10:18:13 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.86 2013/10/17 22:53:59 ottxor Exp $
4 4
5# @ECLASS: subversion.eclass 5# @ECLASS: subversion.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Akinori Hattori <hattya@gentoo.org> 7# Akinori Hattori <hattya@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
441# @DESCRIPTION: 441# @DESCRIPTION:
442# Log the svn revision of source code. Doing this in pkg_preinst because we 442# Log the svn revision of source code. Doing this in pkg_preinst because we
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.
445subversion_pkg_preinst() { 445subversion_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
452 local logmessage="svn: ${pkgdate} - ${PF}:${SLOT} was merged at revision ${ESVN_WC_REVISION}" 453 local logmessage="svn: ${pkgdate} - ${PF}:${SLOT} was merged at revision ${ESVN_WC_REVISION}"
453 if [[ -d ${dir} ]]; then 454 if [[ -d ${dir} ]]; then

Legend:
Removed from v.1.85  
changed lines
  Added in v.1.86

  ViewVC Help
Powered by ViewVC 1.1.20