Gentoo Archives: gentoo-dev

From: Bernd Steinhauser <gentoo@×××××××××××××××××.de>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: scm eclasses/ebuilds and revision logging
Date: Mon, 14 Jan 2008 08:47:16
Message-Id: 478B218A.4090000@bernd-steinhauser.de
In Reply to: [gentoo-dev] Re: scm eclasses/ebuilds and revision logging by Ryan Hill
1 I did now try this for a while and it works quite good, it only has one
2 problem. If the package gets unmerged, for whatever reason, then the
3 file will be unmerged. I know, that it is possible to keep dirs, but is
4 it possible to keep files (without touching them manually outside portage)?
5
6 Bernd
7
8 Ryan Hill schrieb:
9 > Bernd Steinhauser wrote:
10 >> I'm aware of the fact, that the revision of the currently installed
11 >> package is part of the environment and that is saved, but I'm not only
12 >> interested in the revision of the currently installed version, but also
13 >> in the revision of the previously installed version. Just wanted to
14 >> emphasize that again. ;)
15 >>
16 >> Hope someone comes up with some good ideas. ;)
17 >
18 > Would something like this work for you?
19 >
20 > pkg_preinst() {
21 > local pkgdate=$(date "+%Y%m%d %H:%M:%S")
22 > subversion_wc_info
23 > if [[ -n ${PORT_SCMDIR} ]]; then
24 > [[ -e ${ROOT}/${PORT_SCMDIR}/${PN}.revision ]] \
25 > && cp "${ROOT}/${PORT_SCMDIR}"/${PN}.revision "${T}"
26 > echo "${pkgdate} - ${P} was merged at revision
27 > ${ESVN_WC_REVISION}" \
28 > >> "${T}"/${PN}.revision
29 > insinto "${PORT_SCMDIR}"
30 > doins "${T}"/${PN}.revision
31 > fi
32 > }
33 >
34 > that's for subversion of course. set PORT_SCMDIR in make.conf.
35 >
36 >
37
38 --
39 gentoo-dev@l.g.o mailing list