aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-05 15:52:03 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-05 15:52:03 +0100
commitc821f8fc9c3eb1b734c2aebdbc40ca60a5f37448 (patch)
treec4276df50487fb2dd2a501089a52d7d39dbd008c /SBO-Lib/lib
parentd056e68dca8254c0d6769fb8871e29f5036061db (diff)
downloadsbotools2-c821f8fc9c3eb1b734c2aebdbc40ca60a5f37448.tar.xz
Change version comparison
Sometimes versions aren't in order. This might have been the cause of issue #11
Diffstat (limited to 'SBO-Lib/lib')
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm2
1 files changed, 1 insertions, 1 deletions
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},