[TYPO3-core] RFC: Bug #14003: "Check for extension updates" does not always find latest version

Jeff Segars jsegars at alumni.rice.edu
Mon Apr 5 18:48:27 CEST 2010


Hey guys,

This is a SVN patch request.

Type: Bugfix
Bugtracker reference: http://bugs.typo3.org/view.php?id=14003
Branch: Trunk, 4.3

Problem:
The "Check for extension updates" in the Extension Manager does not 
always find the latest version due to a bad expectation of the sort order.

In SC_mod_tools_em_index->showExtensionsToUpdate() we get a list of 
versions for a particular extension and the latest version is assumed to 
be the last entry in the versions array. This array is not necessarily 
sorted by version number however

Solution:
A simple natsort() will make sure that the versions array is sorted 
properly and that the latest version is at the end.

Additional Notes:
To duplicate the issue, ensure that you're on a TemplaVoila version 
prior to the 1.4.2 release. When you "Check for extension updates", 
you'll see 1.4.1 as the latest version. Searching for templavoila from 
the "Import extensions" submodule will reveal 1.4.2 however.

Thanks,
Jeff


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 14003.diff
Type: application/pgp-keys
Size: 494 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100405/ea15d2dd/attachment.key>


More information about the TYPO3-team-core mailing list