URL:
<http://gna.org/patch/?3087>
Summary: Use cvercmp for comparing current version to latest
release
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
_______________________________________________________
Details:
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:
cazfi
<http://gna.org/patch/download.php?file_id=14808>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?3087>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev