RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [CVS] RPM: rpm/ VENDOR rpm/build/ parsePreamble.c

From: Ralf S. Engelschall <rse+rpm-devel@rpm5.org>
Date: Thu 27 Dec 2007 - 17:30:00 CET
Message-ID: <20071227163000.GB54526@engelschall.com>
On Thu, Dec 27, 2007, Jeff Johnson wrote:

> This patch. although more convoluted than simple,
> is likelier a better forward looking approach to
> accessing metadata uniformly no matter what
> the RPM_FOO_TYPE, or whether its a macro or a tag
> or an array or lua or ....
>
> https://lists.dulug.duke.edu/pipermail/rpm-maint/2007-November/000567.html
>
> The patch is integrated (although largely untested
> and unused other than as a means to popuate
> RPMTAG_BUILDMACROS so far).

Well, if you looked at my recent RPM Lua hacks in detail you will
see that I'm actually using rpm.macros() in all of them. This
*IS* exactly this patch you have applied. My OpenPKG-specific
"append-tag-value-to-macro" patch I applied today just allows one in Lua
to fetch from rpm.macros() all(!) values of a tag, not just the last
one.
                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
Received on Thu Dec 27 17:30:45 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.