sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit c821f8fc9c3eb1b734c2aebdbc40ca60a5f37448
parent d056e68dca8254c0d6769fb8871e29f5036061db
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Sat,  5 Dec 2015 15:52:03 +0100

Change version comparison

Sometimes versions aren't in order. This might have been the cause of
issue #11

Diffstat:
MSBO-Lib/lib/SBO/Lib.pm | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm @@ -418,7 +418,7 @@ sub get_available_updates { # if we can't find a location, assume invalid and skip next FIRST unless $location; my $version = get_sbo_version($location); - if (versioncmp($version, $$pkg_list[$key]{version}) == 1) { + if (versioncmp($version, $$pkg_list[$key]{version}) != 0) { push @updates, { name => $$pkg_list[$key]{name}, installed => $$pkg_list[$key]{version},