[Koha-bugs] [Bug 29008] Warning when checking Koha version in plugins

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 2 16:37:48 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29008

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |martin.renvoize at ptfs-europe
                   |                            |.com

--- Comment #6 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Comparing version numbers is fraught with peril :(..

This error message has annoyed me too on a number of occasions.

Do you realise we already have a '_version_compare' routine in
Koha::Plugins::Base?  Was it a deliberate choice not to use it?

Also, In my own plugins, I've started to use Perl version objects for
comparisons : https://metacpan.org/dist/version/view/lib/version.pod.

I'm wondering if one of these approaches might be more reliable for us?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list