From: | "Bo Oersted Andresen (zlin)" <zlin@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in eclass: subversion.eclass |
Date: | Thu, 21 Feb 2008 16:33:12 |
Message-Id: | E1JSEM9-0008FV-MN@stork.gentoo.org |
1 | zlin 08/02/21 16:33:09 |
2 | |
3 | Modified: subversion.eclass |
4 | Log: |
5 | Add support for an optional repo_uri argument for pkg_preinst. |
6 | |
7 | Revision Changes Path |
8 | 1.55 eclass/subversion.eclass |
9 | |
10 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/subversion.eclass?rev=1.55&view=markup |
11 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/subversion.eclass?rev=1.55&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/subversion.eclass?r1=1.54&r2=1.55 |
13 | |
14 | Index: subversion.eclass |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v |
17 | retrieving revision 1.54 |
18 | retrieving revision 1.55 |
19 | diff -u -r1.54 -r1.55 |
20 | --- subversion.eclass 21 Feb 2008 16:01:53 -0000 1.54 |
21 | +++ subversion.eclass 21 Feb 2008 16:33:09 -0000 1.55 |
22 | @@ -1,6 +1,6 @@ |
23 | # Copyright 1999-2008 Gentoo Foundation |
24 | # Distributed under the terms of the GNU General Public License v2 |
25 | -# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.54 2008/02/21 16:01:53 zlin Exp $ |
26 | +# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.55 2008/02/21 16:33:09 zlin Exp $ |
27 | |
28 | # @ECLASS: subversion.eclass |
29 | # @MAINTAINER: |
30 | @@ -434,13 +434,14 @@ |
31 | } |
32 | |
33 | # @FUNCTION: subversion_pkg_preinst |
34 | +# @USAGE: [repo_uri] |
35 | # @DESCRIPTION: |
36 | # Log the svn revision of source code. Doing this in pkg_preinst because we |
37 | # want the logs to stick around if packages are uninstalled without messing with |
38 | # config protection. |
39 | subversion_pkg_preinst() { |
40 | local pkgdate=$(date "+%Y%m%d %H:%M:%S") |
41 | - subversion_wc_info |
42 | + subversion_wc_info "${1:-${ESVN_REPO_URI}}" |
43 | if [[ -n ${ESCM_LOGDIR} ]]; then |
44 | local dir="${ROOT}/${ESCM_LOGDIR}/${CATEGORY}" |
45 | if [[ ! -d ${dir} ]]; then |
46 | |
47 | |
48 | |
49 | -- |
50 | gentoo-commits@l.g.o mailing list |