On Thu, Oct 23, 2003 at 10:12:38AM -0400, Dennis McRitchie wrote:

Dennis,

> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> WARNING: unknown token '"%{with_mta}"':
> < #if "%{with_mta}" != "no"
> > #if "%{with_mta}" != "no"
> WARNING: unknown token '!=':
> < #if "%{with_mta}" != "no"
> > #if "%{with_mta}" != "no"
> WARNING: unknown token '"no"':
> < #if "%{with_mta}" != "no"
> > #if "%{with_mta}" != "no"
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The specfile parser doesn't know comparisons with the != operator, in
particular that operator wasn't part of the set of allowed operators
listed in the RPM documentation when I had a look.

The parser only complains about this single case (there is another one
in the install section) because it doesn't read beyond the first section
macro, i.e. the %description section.

Since rpm supports the != operator one should fix the parser. In the
meantime you can replace this test with a query for == "yes". Testing
for a positive condition with a non-negating operator is better style
anyway, IMHO of course :)

Greetings,
-- 
                                Michael van Elst
Internet: [EMAIL PROTECTED]
                                "A potential Snark may lurk in every tree."
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to