aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO/Lib/Info.pm
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2019-04-27 13:30:13 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2019-04-27 14:42:36 +0200
commitdc2911fc741e36311db8134a2adedb56802f1aa5 (patch)
tree777af638f82c6466397525d2b82690032f306ead /SBO-Lib/lib/SBO/Lib/Info.pm
parent389d715aecb0f647aef813d1fc9f201d1b47b9ed (diff)
downloadsbotools2-dc2911fc741e36311db8134a2adedb56802f1aa5.tar.xz
sboinstall, Build, Info: Allow ignoring of SBo from reqs that doesn't exist
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib/Info.pm')
-rw-r--r--SBO-Lib/lib/SBO/Lib/Info.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/SBO-Lib/lib/SBO/Lib/Info.pm b/SBO-Lib/lib/SBO/Lib/Info.pm
index b79c7fd..dd5b55f 100644
--- a/SBO-Lib/lib/SBO/Lib/Info.pm
+++ b/SBO-Lib/lib/SBO/Lib/Info.pm
@@ -180,7 +180,7 @@ C<get_requires()> returns the requirements for a given C<$sbo>.
# wrapper to pull the list of requirements for a given sbo
sub get_requires {
my $location = get_sbo_location(shift);
- return [] unless $location;
+ return undef unless $location;
my $info = get_from_info(LOCATION => $location, GET => 'REQUIRES');
return $info;
}