diff options
author | Jacob Pipkin <j@dawnrazor.net> | 2012-11-25 14:00:29 -0600 |
---|---|---|
committer | Jacob Pipkin <j@dawnrazor.net> | 2012-11-25 14:00:29 -0600 |
commit | 6b03e1f28a7d7f03ece181467d0c17b9c31611a6 (patch) | |
tree | ae01499163f2ced09fcca4c70ef86999cff86d03 /sboremove | |
parent | c0c3cd7b82b143699a6cc45c944a519bf20a7f8f (diff) | |
download | sbotools-6b03e1f28a7d7f03ece181467d0c17b9c31611a6.tar.xz |
only call get_from_info if $location, so sboremove wont crash for removed sbos
Diffstat (limited to 'sboremove')
-rwxr-xr-x | sboremove | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -70,7 +70,8 @@ my ($remove_queue, %required_by, %warnings, @confirmed); sub get_requires ($) { my $location = get_sbo_location (shift); - my $requires = get_from_info (LOCATION => $location, GET => 'REQUIRES'); + my $requires = get_from_info (LOCATION => $location, GET => 'REQUIRES') + if $location; return $requires; } |