Action requested: check dist tags and conditionals

Kevin Kofler kevin.kofler at chello.at
Sun Jun 7 16:56:46 UTC 2009


Björn Persson wrote:

> Dennis Gilmore wrote:
>> %if 0%{?fedora} <= 8 || 0%{?rhel} <= 5
> 
> Won't that expression always be true, except if both %{fedora} and %{rhel}
> are defined? I can only guess on how this works but it seems to me that,
> in Fedora 10 for example, it will be expanded to "%if 010 <= 8 || 0 <= 5",
> which will be true because 0 is less than 5. (I'm assuming that "||" is
> the "or" operator from C.)

Right, this shouldn't be ||, it needs to be &&.

        Kevin Kofler




More information about the fedora-devel-list mailing list