"10" < "9": Get rid of string comparisons in time for F-10?

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

 



On #fedora-devel, the issue of comparing Fedora versions by string comparison just came up. With F-10 on the way, this will be the first time when string comparing versions will fail in a "10" < "7" way.

The case in question was a classic older %if "%{?fedora}" > "7", which should be changed to %if 0%{?fedora} > 7, as Rex Dieter and Christopher Stone have pointed out: http://fedoraproject.org/wiki/Packaging/DistTag#head-1c550109af0705ccb71329619b99428af2fd3e25

Where else but in spec files may similarly wrong string comparisons be happening? Is a systematic effort required to fix these comparisons in the run-up to F-10?

--
Hans Ulrich Niedermann

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
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