RPM Community Forums

Mailing List Message of <rpm-users>

macro args broken

From: Elan Ruusamäe <glen@delfi.ee>
Date: Wed 20 Feb 2008 - 22:51:13 CET
Message-Id: <200802202351.13079.glen@delfi.ee>

%argtest(p:b:a:) %{-b:b=%{-b*}} 1=%1

$ rpm -E "%argtest -p 1 -b 2 param1 param2"
b=2 1=param1

$ rpm -E "%argtest param1 param2 -p 1 -b 2"

thus, if parameters are passed before options, the options are not to be seen

rpm 5.0.2

Received on Wed Feb 20 22:51:16 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.