aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO
diff options
context:
space:
mode:
authorJ Pipkin <j@dawnrazor.net>2013-03-09 03:23:27 -0600
committerJ Pipkin <j@dawnrazor.net>2013-03-09 03:23:27 -0600
commite703434bcbe3c11ecae9c710241516d1c7fdebec (patch)
tree8f2919019bf4b5d9ee05b13d48219a0824ba770c /SBO-Lib/lib/SBO
parente8759a987a0bd1560cddd5d9443a4dfa2c3154fb (diff)
parentaa6de2e5a364f062df3eda6129f5e9285161af3a (diff)
downloadsbotools2-e703434bcbe3c11ecae9c710241516d1c7fdebec.tar.xz
Merge branch 'nonexistent', fixes #51
Diffstat (limited to 'SBO-Lib/lib/SBO')
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
index 9b9c168..770e300 100644
--- a/SBO-Lib/lib/SBO/Lib.pm
+++ b/SBO-Lib/lib/SBO/Lib.pm
@@ -326,7 +326,7 @@ sub get_sbo_location {
seek $fh, 0, 0;
}
close $fh;
- return keys %locations > 0 ? %locations : undef;
+ return %locations;
}
# pull the sbo name from a $location: $config{SBO_HOME}/system/wine, etc.
@@ -383,7 +383,7 @@ sub get_available_updates() {
FIRST: for my $key (keys @$pkg_list) {
my $location = get_sbo_location($$pkg_list[$key]{name});
# if we can't find a location, assume invalid and skip
- next FIRST unless defined $location;
+ next FIRST unless $location;
my $version = get_sbo_version $location;
if (versioncmp($version, $$pkg_list[$key]{version}) == 1) {
push @updates, {