From c821f8fc9c3eb1b734c2aebdbc40ca60a5f37448 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Sat, 5 Dec 2015 15:52:03 +0100 Subject: Change version comparison Sometimes versions aren't in order. This might have been the cause of issue #11 --- SBO-Lib/lib/SBO/Lib.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SBO-Lib/lib/SBO/Lib.pm') diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index eee6210..083f532 100644 --- 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}, -- cgit v1.2.3