From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JEKyS-0000pu-I5 for garchives@archives.gentoo.org; Mon, 14 Jan 2008 08:47:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80C6BE0814; Mon, 14 Jan 2008 08:47:14 +0000 (UTC) Received: from rex96.flatbooster.net (rex96.flatbooster.net [83.133.189.96]) by pigeon.gentoo.org (Postfix) with ESMTP id 5D3E4E0814 for ; Mon, 14 Jan 2008 08:47:14 +0000 (UTC) Received: from [78.42.31.136] (HSI-KBW-078-042-031-136.hsi3.kabel-badenwuerttemberg.de [78.42.31.136]) by rex96.flatbooster.net (Postfix) with ESMTP id 136AA12704A2 for ; Mon, 14 Jan 2008 09:47:13 +0100 (CET) Message-ID: <478B218A.4090000@bernd-steinhauser.de> Date: Mon, 14 Jan 2008 09:47:06 +0100 From: Bernd Steinhauser User-Agent: Thunderbird 2.0.0.9 (X11/20071115) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: scm eclasses/ebuilds and revision logging References: <47882F6E.4000102@bernd-steinhauser.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 309f7cf2-13e7-48e1-96cc-776ae06cf861 X-Archives-Hash: 1d51dd18968ae3c44ee1ec38ddee5d8b I did now try this for a while and it works quite good, it only has one problem. If the package gets unmerged, for whatever reason, then the file will be unmerged. I know, that it is possible to keep dirs, but is it possible to keep files (without touching them manually outside portage)? Bernd Ryan Hill schrieb: > Bernd Steinhauser wrote: >> I'm aware of the fact, that the revision of the currently installed >> package is part of the environment and that is saved, but I'm not only >> interested in the revision of the currently installed version, but also >> in the revision of the previously installed version. Just wanted to >> emphasize that again. ;) >> >> Hope someone comes up with some good ideas. ;) > > Would something like this work for you? > > pkg_preinst() { > local pkgdate=$(date "+%Y%m%d %H:%M:%S") > subversion_wc_info > if [[ -n ${PORT_SCMDIR} ]]; then > [[ -e ${ROOT}/${PORT_SCMDIR}/${PN}.revision ]] \ > && cp "${ROOT}/${PORT_SCMDIR}"/${PN}.revision "${T}" > echo "${pkgdate} - ${P} was merged at revision > ${ESVN_WC_REVISION}" \ > >> "${T}"/${PN}.revision > insinto "${PORT_SCMDIR}" > doins "${T}"/${PN}.revision > fi > } > > that's for subversion of course. set PORT_SCMDIR in make.conf. > > -- gentoo-dev@lists.gentoo.org mailing list