diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2019-04-27 13:30:13 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2019-04-27 14:42:36 +0200 |
commit | dc2911fc741e36311db8134a2adedb56802f1aa5 (patch) | |
tree | 777af638f82c6466397525d2b82690032f306ead /SBO-Lib/lib | |
parent | 389d715aecb0f647aef813d1fc9f201d1b47b9ed (diff) | |
download | sbotools2-dc2911fc741e36311db8134a2adedb56802f1aa5.tar.xz |
sboinstall, Build, Info: Allow ignoring of SBo from reqs that doesn't exist
Diffstat (limited to 'SBO-Lib/lib')
-rw-r--r-- | SBO-Lib/lib/SBO/Lib/Build.pm | 3 | ||||
-rw-r--r-- | SBO-Lib/lib/SBO/Lib/Info.pm | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/SBO-Lib/lib/SBO/Lib/Build.pm b/SBO-Lib/lib/SBO/Lib/Build.pm index f6911a9..7587836 100644 --- a/SBO-Lib/lib/SBO/Lib/Build.pm +++ b/SBO-Lib/lib/SBO/Lib/Build.pm @@ -780,6 +780,9 @@ sub _build_queue { $warnings->{$sbo}="%README%" if $req eq "%README%"; } } + else { + $warnings->{$sbo} = "nonexistent"; + } push @result, $sbo; } 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; } |