"10" < "9": Get rid of string comparisons in time for F-10?
Hans Ulrich Niedermann
hun at n-dimensional.de
Fri May 23 23:00:26 UTC 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20080524/944a328a/attachment.sig>
More information about the fedora-devel-list
mailing list