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

Diff of /eclass/subversion.eclass

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

Revision 1.84 Revision 1.85
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.84 2013/04/28 16:15:33 zmedico Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.85 2013/07/27 10:18:13 mgorny 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:
322 ${ESVN_UPDATE_CMD} ${options} --username "${ESVN_USER}" --password "${ESVN_PASSWORD}" || die "${ESVN}: can't update ${wc_path} from ${repo_uri}." 322 ${ESVN_UPDATE_CMD} ${options} --username "${ESVN_USER}" --password "${ESVN_PASSWORD}" || die "${ESVN}: can't update ${wc_path} from ${repo_uri}."
323 else 323 else
324 ${ESVN_UPDATE_CMD} ${options} || die "${ESVN}: can't update ${wc_path} from ${repo_uri}." 324 ${ESVN_UPDATE_CMD} ${options} || die "${ESVN}: can't update ${wc_path} from ${repo_uri}."
325 fi 325 fi
326 fi 326 fi
327
328 # export updated information for the working copy
329 subversion_wc_info "${repo_uri}" || die "${ESVN}: unknown problem occurred while accessing working copy."
327 fi 330 fi
328 fi 331 fi
329 332
330 if [[ -n "${ESVN_UMASK}" ]]; then 333 if [[ -n "${ESVN_UMASK}" ]]; then
331 eumask_pop 334 eumask_pop
439# 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
440# 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
441# config protection. 444# config protection.
442subversion_pkg_preinst() { 445subversion_pkg_preinst() {
443 local pkgdate=$(date "+%Y%m%d %H:%M:%S") 446 local pkgdate=$(date "+%Y%m%d %H:%M:%S")
444 subversion_wc_info "${1}"
445 if [[ -n ${ESCM_LOGDIR} ]]; then 447 if [[ -n ${ESCM_LOGDIR} ]]; then
446 local dir="${ROOT}/${ESCM_LOGDIR}/${CATEGORY}" 448 local dir="${ROOT}/${ESCM_LOGDIR}/${CATEGORY}"
447 if [[ ! -d ${dir} ]]; then 449 if [[ ! -d ${dir} ]]; then
448 mkdir -p "${dir}" || eerror "Failed to create '${dir}' for logging svn revision" 450 mkdir -p "${dir}" || eerror "Failed to create '${dir}' for logging svn revision"
449 fi 451 fi

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

  ViewVC Help
Powered by ViewVC 1.1.20