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

Diff of /eclass/subversion.eclass

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

Revision 1.54 Revision 1.55
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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.54 2008/02/21 16:01:53 zlin Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.55 2008/02/21 16:33:09 zlin 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# Bo ├śrsted Andresen <zlin@gentoo.org> 8# Bo ├śrsted Andresen <zlin@gentoo.org>
432 432
433 echo "${peg_rev}" 433 echo "${peg_rev}"
434} 434}
435 435
436# @FUNCTION: subversion_pkg_preinst 436# @FUNCTION: subversion_pkg_preinst
437# @USAGE: [repo_uri]
437# @DESCRIPTION: 438# @DESCRIPTION:
438# Log the svn revision of source code. Doing this in pkg_preinst because we 439# Log the svn revision of source code. Doing this in pkg_preinst because we
439# want the logs to stick around if packages are uninstalled without messing with 440# want the logs to stick around if packages are uninstalled without messing with
440# config protection. 441# config protection.
441subversion_pkg_preinst() { 442subversion_pkg_preinst() {
442 local pkgdate=$(date "+%Y%m%d %H:%M:%S") 443 local pkgdate=$(date "+%Y%m%d %H:%M:%S")
443 subversion_wc_info 444 subversion_wc_info "${1:-${ESVN_REPO_URI}}"
444 if [[ -n ${ESCM_LOGDIR} ]]; then 445 if [[ -n ${ESCM_LOGDIR} ]]; then
445 local dir="${ROOT}/${ESCM_LOGDIR}/${CATEGORY}" 446 local dir="${ROOT}/${ESCM_LOGDIR}/${CATEGORY}"
446 if [[ ! -d ${dir} ]]; then 447 if [[ ! -d ${dir} ]]; then
447 mkdir -p "${dir}" || \ 448 mkdir -p "${dir}" || \
448 eerror "Failed to create '${dir}' for logging svn revision to '${PORTDIR_SCM}'" 449 eerror "Failed to create '${dir}' for logging svn revision to '${PORTDIR_SCM}'"

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55

  ViewVC Help
Powered by ViewVC 1.1.20