From 4b45271e7fca8322014b7062a7c5cdd800a93acd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bo=20=C3=98rsted=20Andresen?= Date: Thu, 21 Feb 2008 16:33:09 +0000 Subject: [PATCH] Add support for an optional repo_uri argument for pkg_preinst. --- eclass/subversion.eclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eclass/subversion.eclass b/eclass/subversion.eclass index 446d9ac51f2c..1f8474555cc8 100644 --- a/eclass/subversion.eclass +++ b/eclass/subversion.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.54 2008/02/21 16:01:53 zlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.55 2008/02/21 16:33:09 zlin Exp $ # @ECLASS: subversion.eclass # @MAINTAINER: @@ -434,13 +434,14 @@ subversion__get_peg_revision() { } # @FUNCTION: subversion_pkg_preinst +# @USAGE: [repo_uri] # @DESCRIPTION: # Log the svn revision of source code. Doing this in pkg_preinst because we # want the logs to stick around if packages are uninstalled without messing with # config protection. subversion_pkg_preinst() { local pkgdate=$(date "+%Y%m%d %H:%M:%S") - subversion_wc_info + subversion_wc_info "${1:-${ESVN_REPO_URI}}" if [[ -n ${ESCM_LOGDIR} ]]; then local dir="${ROOT}/${ESCM_LOGDIR}/${CATEGORY}" if [[ ! -d ${dir} ]]; then -- 2.26.2