diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2018-02-14 07:01:29 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2018-02-14 07:07:42 +0100 |
commit | 896b0ac9531b0b3bc2f08989a84eed6733e4328a (patch) | |
tree | 7f6b58ed875ba992d26e3bfc5e42311f57c9b059 /SBO-Lib/lib/SBO/Lib/Info.pm | |
parent | 4b938bd0de536ff8222f2e2c6de052fb472db1ea (diff) | |
download | sbotools2-896b0ac9531b0b3bc2f08989a84eed6733e4328a.tar.xz |
Strip -compat32 from slackbuild names and make sure to properly return an array reference
This fixes #65
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib/Info.pm')
-rw-r--r-- | SBO-Lib/lib/SBO/Lib/Info.pm | 2 |
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 1cc0224..60812ab 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 [] unless $location; my $info = get_from_info(LOCATION => $location, GET => 'REQUIRES'); return $info; } |