I've an rpmpopt file containing:
| rpm alias --mark --define "__marker !#:+" \
| --POPTdesc=$"mark package with Marker: <marker>" \
| --POPTargs=$"<marker>"
|
| rpm alias --marked -a 'Marker=*' \
| --POPTdesc=$"restrict query to marked packages"
and a corresponding rpmmacros containing:
| %description\
| [...] \
| %{?__hook_description_4}\
| [...] \
| %%description
|
| [...]
| %__hook_description_4 %{?__marker:Marker: %{__marker}}\
| %{nil}
|
| [...]
| %_arbitrary_tags [...]:Marker:[...]
This allows me to manually "mark" a package during rebuilding via "rpm
--rebuild --mark foo", but the intended "rpm -q --marked" doesn't work
as expected as the 'Marker=*' argument seems to be ignored. A "rpm
-q --marked" just performs the "rpm -q -a" operation but without the
restriction on the marked packages. A manual "rpm -q -a 'Marker=*'" OTOH
works just fine. But this query syntax is too complicated to remember,
so I really want to provide the --marked option.
So, is this an intented POPT feature, or is there a bug, or do I just
miss something important? For me it looks that with "rpmpopt" one can
alias _options_ and _options plus option arguments_, but not _regular
arguments_...
Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com
Received on Wed Dec 26 10:27:46 2007