Re: Action requested: check dist tags and conditionals

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

 



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

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux