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 - 19:06:15 CET
Message-ID: <20071227180614.GA17110@engelschall.com>
On Thu, Dec 27, 2007, Ralf S. Engelschall wrote:

> [...]
> YES, YES, YES! Exactly *THIS* would be what we really need! I was not
> aware that the old values are still preserved on a stack.
> [...]

Just tried it:

| $ rpm --define 'foo bar' --eval '%foo' --define 'foo baz' --eval '%foo' --undefine 'foo' --eval '%foo'
| bar
| baz
| bar

Very nice, very nice. I cannot just wait until I see Jeff's commit
to support this:

| $ rpm --define 'foo foo' --define 'foo bar' --define 'foo quux' --eval "%{@foo:\n}"
| foo
| bar
| quux

Very interesting what rather cool functionalities are under the hat
of RPM and which nobody beside Jeff seems to know about at all. I
guess there are even more those cool things which we just have to
discovered... ;-)
                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
Received on Thu Dec 27 19:11:03 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.