Summary: Use cvercmp for comparing current version to latest
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Tue 17 Jan 2012 12:07:50 AM EET
                Category: bootstrap
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.4.0, 2.5.0



Client informs user if (s)he is not running the latest stable freeciv
release. Currently this is just comparison of version string equality, with no
any attempts to determine if latest stable version number as got from
metaserver really is *newer* than current version. This affects development
versions at least; all of "2.3.1+", "2.3.99", and "2.4.99" are unequal to
stable release "2.3.1"
Since I need similar version number comparisons in many projects I'm involved
in, I've now implemented version comparison library, cvercmp, as independent
project: http://www.cazfi.net/other/cvercmp.html
Attached patch adds copy of relevant cvercmp files under dependencies, and
uses it for checking if latest stable release version number is greater than
current version.


File Attachments:

Date: Tue 17 Jan 2012 12:07:50 AM EET  Name: cvercmp.diff  Size: 13kB   By:



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to