[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Action requested: check dist tags and conditionals



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]